-
Notifications
You must be signed in to change notification settings - Fork 2
/
Caddyfile
59 lines (47 loc) · 1.22 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
51
52
53
54
55
56
57
58
59
localhost:443,
localhost:80,
0.0.0.0:{$CADDY_PORT} {
tls off #internal service
git {
repo https://github.com/yeg-relief/screenerClient
branch {$CLIENT_BRANCH}
path /usr/client
}
root /usr/client/dist
proxy /api web:{$API_PORT}
proxy /protected web:{$PROTECTED_PORT}
proxy /data web:{$DATA_PORT}
proxy /elastic elasticsearch:{$ELASTICSEARCH_PORT} {
without /elastic
}
basicauth /protected {$ADMIN_USERNAME} {$ADMIN_PASSWORD}
basicauth /data {$ADMIN_USERNAME} {$ADMIN_PASSWORD}
basicauth /elastic {$ELASTIC_USERNAME} {$ELASTIC_PASSWORD}
rewrite /home to /index.html
rewrite /browse-programs {
r (\w+)
to /index.html?path=browse-programs&subPath={1}
}
rewrite /about {
to /index.html?path=about
}
rewrite /master-screener/questions {
to /index.html?path=master-screener&subPath=questions
}
rewrite /master-screener/results/details {
r (\w+)
to /index.html?path=master-screener&subPath=results&detail={1}
}
rewrite /master-screener/results {
to /index.html?path=master-screener&subPath=results
}
rewrite /quick-links {
to /index.html?path=quick-links
}
rewrite /admin {
to /index.html?path=admin
}
errors {
404 /index.html
}
}