mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-12 13:07:50 +00:00
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:
parent
168bc9047b
commit
b1def1db75
6 changed files with 29 additions and 3 deletions
|
@ -69,6 +69,10 @@ func mergeServerConfig(ctx *cli.Context, config *ServerConfig) {
|
|||
if ctx.IsSet("enable-http-server") {
|
||||
config.HttpServerEnabled = ctx.Bool("enable-http-server")
|
||||
}
|
||||
if ctx.IsSet("use-proxy-protocol") {
|
||||
config.UseProxyProtocol = ctx.Bool("use-proxy-protocol")
|
||||
}
|
||||
|
||||
if ctx.IsSet("pages-domain") {
|
||||
config.MainDomain = ctx.String("pages-domain")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue