diff --git a/internal/config/config_server.go b/internal/config/config_server.go index c8cd44586..ff125f8bc 100644 --- a/internal/config/config_server.go +++ b/internal/config/config_server.go @@ -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 } diff --git a/internal/config/flags.go b/internal/config/flags.go index ae31d630f..9a9a3ce2d 100644 --- a/internal/config/flags.go +++ b/internal/config/flags.go @@ -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", }}, {