mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-12 21:17:51 +00:00
Apply JnCrMx's patch for optional HTTP-only mode
This commit is contained in:
parent
9524b1eb12
commit
5352937065
6 changed files with 62 additions and 40 deletions
|
@ -84,6 +84,9 @@ func mergeServerConfig(ctx *cli.Context, config *ServerConfig) {
|
|||
if ctx.IsSet("blacklisted-paths") {
|
||||
config.BlacklistedPaths = ctx.StringSlice("blacklisted-paths")
|
||||
}
|
||||
if ctx.IsSet("http-only-mode") {
|
||||
config.HttpOnlyMode = ctx.Bool("http-only-mode")
|
||||
}
|
||||
|
||||
// add the paths that should always be blacklisted
|
||||
config.BlacklistedPaths = append(config.BlacklistedPaths, ALWAYS_BLACKLISTED_PATHS...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue