feat: add option to log every request with path and IP

This commit is contained in:
crapStone 2025-06-12 22:57:04 +02:00 committed by crapStone
parent 2b2f280bc3
commit 023ea17492
5 changed files with 30 additions and 0 deletions

View file

@ -72,6 +72,9 @@ func mergeServerConfig(ctx *cli.Context, config *ServerConfig) {
if ctx.IsSet("use-proxy-protocol") {
config.UseProxyProtocol = ctx.Bool("use-proxy-protocol")
}
if ctx.IsSet("log-every-request") {
config.LogEveryRequest = ctx.Bool("log-every-request")
}
if ctx.IsSet("pages-domain") {
config.MainDomain = ctx.String("pages-domain")