blob: 433307ad1706fc16dc1e2fc2325f58ace6de39a1 (
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
|
{
order cgi before respond
}
(robots) {
respond /robots.txt <<EOF
Hey robots :)
EOF 200
}
http://localhost:8080 {
root * zig-out
import robots
# API server
cgi /api/* comments/zig-out/bin/comments {
env NOTIFICATION_ADDRESS=martin@mfashby.net SMTP_SERVER=mail.mfashby.net:587 SMTP_USERNAME=comments@mfashby.net SMTP_PASSWORD=foobar DATABASE_URL=postgresql://localhost/comments
}
# Treat posts as home
redir / /posts/ temporary
# Redirects for old assets
redir /10-11-21-longboard-slides.mp4 /assets/10-11-21-longboard-slides.mp4 permanent
redir /apex_1.jpg /assets/apex_1.jpg permanent
redir /apex_2.jpg /assets/apex_2.jpg permanent
redir /bike.jpg /assets/bike.jpg permanent
redir /drop-in.mp4 /assets/drop-in.mp4 permanent
redir /longboard.jpg /assets/longboard.jpg permanent
redir /mailu_screenshot.png /assets/mailu_screenshot.png permanent
redir /reprap.jpg /assets/reprap.jpg permanent
redir /skate4.mp4 /assets/skate4.mp4 permanent
redir /skateboard.jpg /assets/skateboard.jpg permanent
redir /unicorn1.jpg /assets/unicorn1.jpg permanent
redir /unicorn2.jpg /assets/unicorn2.jpg permanent
redir /unicorn3.jpg /assets/unicorn3.jpg permanent
redir /unicorn.gif /assets/unicorn.gif permanent
redir /unicorn_small.gif /assets/unicorn_small.gif permanent
file_server
}
|