mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-07-04 01:06:36 +00:00
feat: add option to log every request with path and IP
This commit is contained in:
parent
d27c594c28
commit
abc9bca5c4
5 changed files with 30 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue