Last active 1717834463

adien's Avatar adienakhmad revised this gist 1717834463. Go to revision

1 file changed, 1 insertion

caddy-fallback

@@ -7,6 +7,7 @@
7 7
8 8 :80 {
9 9 reverse_proxy localhost:5000 localhost:8080 {
10 + header_up Host {upstream_hostport}
10 11 lb_policy first
11 12 health_uri /healthy
12 13 health_interval 5s

adien's Avatar adienakhmad revised this gist 1717834364. Go to revision

1 file changed, 27 insertions

caddy-fallback(file created)

@@ -0,0 +1,27 @@
1 + {
2 + log {
3 + include http.handlers.reverse_proxy.health_checker.active
4 + level WARN
5 + }
6 + }
7 +
8 + :80 {
9 + reverse_proxy localhost:5000 localhost:8080 {
10 + lb_policy first
11 + health_uri /healthy
12 + health_interval 5s
13 + health_timeout 1s
14 + }
15 + }
16 +
17 + http://localhost:8080 {
18 + handle /healthy {
19 + respond 200
20 + }
21 + handle {
22 + root * /var/lib/project/wwwroot-fallback
23 + header Cache-Control "no-cache, no-store, must-revalidate"
24 + try_files {path} /index.html
25 + file_server
26 + }
27 + }
Newer Older