Implement HTTP-only mode
This is very useful for reserve proxies in cases when TLS passthrough is not desired.
This commit is contained in:
@ -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...)
|
||||
|
Reference in New Issue
Block a user