summaryrefslogtreecommitdiff
blob: 7737b69ef436c7edbe10f295384f6e1f31334748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file is a comma-separated set of rules for matching URLs to the pages they refer to.  Rows are tried in order The following syntax is expected of each row:
# Col 1: regexp to match
# Col 2: page to use
# [Col 3: varname for subexpr 1]
# [Col 4: varname for subexpr 2]
# [Col 5: varname=static value 1]
# [Col 6: varname=static value 2]
# #-ed lines are ignored.
# Something like the following line should always be last to catch unrecognized URLs
# ^	404

# Home
^$	welcome
# Logs
^logs$	logview
^logs/([a-z0-9]{6})$	logview	build
^logs/([a-z0-9]{6})/([0-9]+)$	logview	build	task
^logs/([a-z0-9]{6})/([0-9]+)/([0-9]+)$	logview	build	task	page
#^logs/([a-z0-9]{6})/live$	livelog	build
# Configurations
^create$	configurations/wizard
^config/([a-zA-Z0-9]{6})$	configurations/wizard	configuration
^config/([a-zA-Z0-9]{6})/([0-9]+)$	configurations/wizard	configuration	step
^config/([a-zA-Z0-9]{6})/status$	configurations/status	configuration
^configurations$	configurations/manager
# Download finished image
^download/([a-zA-Z0-9]{6})$	downloadimage	build
# Session
^login$	login
^login/(.+)$	login	go
^logout$	logout
^logout/(.+)$	logout	go
# Account stuff
^register$	register
^register/([a-zA-Z0-9]{30})$	register	token
^invite$	invite
# Pass through
^(js)/([0-9a-zA-Z-_]+\.(js))$	passthrough	dir	file	ext
^(images)/([0-9a-zA-Z-_]+\.(gif|jpg|jpeg|ico|png))$	passthrough	dir	file	ext
(?:.*/)?(favicon.(ico))$	passthrough	file	ext	dir=images
# Replace xinha with a directory name to turn it into fairly normal handling like without all this crazy redirecting
#^(xinha(?=/)[0-9a-zA-Z-_./]*).(?<=/)([0-9a-zA-Z-_.]+\.([a-zA-Z0-9]+))$	passthrough	dir	file	ext
# CSS
^style.css$	stylesheet
# Backend access only
^backend/upload_image$	upload
# This is the catch-all - never remove it
^	404