forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
26 lines (23 loc) · 629 Bytes
/
Caddyfile
File metadata and controls
26 lines (23 loc) · 629 Bytes
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
{
http_port 3081
auto_https disable_redirects
}
# A bit of monstrosity, since we need to reverse proxy via the web builder dev server which then
# reverse proxies to us on HTTP.
#
# Caddy (tls :3443) -> web builder dev server (:3080) -> Caddy (:3081) -> sourcegraph-frontend (:3082)
{$SOURCEGRAPH_HTTPS_DOMAIN}:{$SOURCEGRAPH_HTTPS_PORT} {
tls internal
reverse_proxy 127.0.0.1:3080 {
lb_try_duration 60s
}
}
# Caddy (:3081) -> sourcegraph-frontend (:3082)
:3081 {
reverse_proxy 127.0.0.1:3082
}
# Caddy (:3083) -> Cody Gateway (:9992)
{$SOURCEGRAPH_HTTPS_DOMAIN}:3083 {
tls internal
reverse_proxy 127.0.0.1:9992
}