Skip to content

Commit 1cccc00

Browse files
committed
feat: add health endpoint proxying for app server
1 parent d31909d commit 1cccc00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hosting/single/nginx/nginx-default-site.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ server {
1818
return 404;
1919
}
2020

21+
location = /health {
22+
proxy_pass http://127.0.0.1:4002/health;
23+
proxy_set_header Host $host;
24+
proxy_set_header X-Real-IP $remote_addr;
25+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26+
proxy_set_header X-Forwarded-Proto $scheme;
27+
}
28+
2129
location /app {
2230
proxy_pass http://127.0.0.1:4001;
2331
}

0 commit comments

Comments
 (0)