-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCaddyfile
50 lines (40 loc) · 1.01 KB
/
Caddyfile
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
49
50
{
# https://caddyserver.com/docs/caddyfile/directives#sorting-algorithm
order mercure after encode
order vulcain after reverse_proxy
}
localhost
root /srv
vulcain
file_server
handle /books {
header "Link" "</books>; rel=\"self\", <https://localhost/.well-known/mercure>; rel=\"mercure\""
try_files ./tests-server/fixtures/books.jsonld {path}
}
handle /books/* {
header "Link" "<{path}>; rel=\"self\", <https://localhost/.well-known/mercure>; rel=\"mercure\""
try_files ./tests-server/fixtures/{path}.jsonld {path}
}
handle /authors/* {
header "Link" "<{path}>; rel=\"self\", <https://localhost/.well-known/mercure>; rel=\"mercure\""
try_files ./tests-server/fixtures/{path}.jsonld {path}
}
handle /index.js {
try_files ./*/{path} {path}
}
handle /*.js {
root /srv/packages
try_files ./*/{path} {path}
}
handle /* {
try_files ./tests-server/{path}.html {path}
}
handle / {
try_files ./tests-server/index.html {path}
}
mercure {
publisher_jwt key
subscriber_jwt key
anonymous true
ui true
}