sourcegraph/dev/Caddyfile
Quinn Slack 7984c4abde
rename {webpack => web}.manifest.json (#57449)
This file is produced by both Webpack and esbuild. It is not Webpack-specific.

```
fastmod -e yaml,ts,js,md,tsx WEBPACK_MANIFEST WEB_BUILD_MANIFEST
fastmod -e yaml,ts,js,md,tsx,go webpack.manifest.json web.manifest.json
fastmod -e yaml,ts,js,md,tsx,go webpackManifestPath webBuildManifestPath
fastmod -e yaml,ts,js,md,tsx,go 'webpack manifest' 'web build manifest'
fastmod -e go,ts,tsx webpackManifest webBuildManifest
fastmod -e go,ts,tsx WebpackManifest WebBuildManifest # not all accepted
```
2023-10-07 14:02:41 -10:00

21 lines
504 B
Caddyfile

{
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
}