Skip to content

Commit

Permalink
Config: Update trusted proxy command flag help
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed Nov 3, 2022
1 parent f7becc2 commit c29bc5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/config/config_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}}, {
Expand Down

0 comments on commit c29bc5a

Please sign in to comment.