sourcegraph/dev/Caddyfile
2022-02-24 23:27:57 +00:00

21 lines
470 B
Caddyfile

{
http_port 3081
auto_https disable_redirects
}
# A bit of monstrosity, since we need to reverse proxy via webpack which then
# reverse proxies to us on HTTP.
#
# Caddy (tls :3443) -> webpack (:3080) -> Caddy (:3081) -> sourcegraph-frontend (:3082)
{$SOURCEGRAPH_HTTPS_DOMAIN}:{$SOURCEGRAPH_HTTPS_PORT} {
tls internal
reverse_proxy localhost:3080 {
lb_try_duration 60s
}
}
# Caddy (:3081) -> sourcegraph-frontend (:3082)
:3081 {
reverse_proxy localhost:3082
}