Config: Update trusted proxy command flag help

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-11-03 07:54:18 +01:00
parent f7becc2fd5
commit c29bc5a8d4
2 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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",
}}, {