Config: Update trusted proxy command flag help
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
f7becc2fd5
commit
c29bc5a8d4
2 changed files with 3 additions and 3 deletions
|
@ -19,12 +19,12 @@ func (c *Config) DetachServer() bool {
|
|||
return c.options.DetachServer
|
||||
}
|
||||
|
||||
// TrustedProxy returns the list of trusted proxy servers as comma-separated list.
|
||||
// TrustedProxy returns the ranges from which reverse proxy headers can be trusted as comma-separated list.
|
||||
func (c *Config) TrustedProxy() string {
|
||||
return strings.Join(c.options.TrustedProxies, ", ")
|
||||
}
|
||||
|
||||
// TrustedProxies returns proxy server ranges from which client and protocol headers can be trusted.
|
||||
// TrustedProxies returns proxy server ranges from which reverse proxy headers can be trusted.
|
||||
func (c *Config) TrustedProxies() []string {
|
||||
return c.options.TrustedProxies
|
||||
}
|
||||
|
|
|
@ -409,7 +409,7 @@ var Flags = CliFlags{
|
|||
}, Tags: []string{EnvSponsor}}, {
|
||||
Flag: cli.StringSliceFlag{
|
||||
Name: "trusted-proxy",
|
||||
Usage: "`CIDR` range from which IP and HTTPS proxy headers can be trusted",
|
||||
Usage: "`CIDR` range from which reverse proxy headers can be trusted",
|
||||
Value: &cli.StringSlice{header.CidrDockerInternal},
|
||||
EnvVar: "PHOTOPRISM_TRUSTED_PROXY",
|
||||
}}, {
|
||||
|
|
Loading…
Reference in a new issue