-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCaddyfile.k8s
54 lines (42 loc) · 1.19 KB
/
Caddyfile.k8s
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
:443,
:80,
0.0.0.0:{$CADDY_PORT} {
tls off #internal service
proxy / youcanbenefit-web-service:80
proxy /api youcanbenefit-api-service:{$API_PORT}
proxy /protected youcanbenefit-api-service:{$PROTECTED_PORT}
proxy /data youcanbenefit-api-service:{$DATA_PORT}
proxy /elastic elasticsearch-1-elasticsearch-svc:{$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
}
}