feat: add proxy protocol support

This can be useful when the pages-server is running behing a proxy, to
keep track of the originating ip.
This commit is contained in:
Julien Malka 2024-10-14 01:42:19 +02:00 committed by Gusted
parent 168bc9047b
commit b1def1db75
6 changed files with 29 additions and 3 deletions

View file

@ -109,6 +109,13 @@ var (
EnvVars: []string{"ENABLE_HTTP_SERVER"},
Value: false,
},
&cli.BoolFlag{
Name: "use-proxy-protocol",
Usage: "use the proxy protocol",
EnvVars: []string{"USE_PROXY_PROTOCOL"},
Value: false,
},
// Default branches to fetch assets from
&cli.StringSliceFlag{
Name: "pages-branch",