dev/Caddyfile: use 127.0.0.1 instead of localhost (#38955)

This commit is contained in:
Robert Lin 2022-07-18 13:19:09 -07:00 committed by GitHub
parent e522b25eb5
commit 0ebfe5eea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,12 +9,12 @@
# Caddy (tls :3443) -> webpack (:3080) -> Caddy (:3081) -> sourcegraph-frontend (:3082)
{$SOURCEGRAPH_HTTPS_DOMAIN}:{$SOURCEGRAPH_HTTPS_PORT} {
tls internal
reverse_proxy localhost:3080 {
reverse_proxy 127.0.0.1:3080 {
lb_try_duration 60s
}
}
# Caddy (:3081) -> sourcegraph-frontend (:3082)
:3081 {
reverse_proxy localhost:3082
reverse_proxy 127.0.0.1:3082
}