Skip to content

Commit c29bc5a

Browse files
committed
Config: Update trusted proxy command flag help
Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent f7becc2 commit c29bc5a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/config/config_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ func (c *Config) DetachServer() bool {
1919
return c.options.DetachServer
2020
}
2121

22-
// TrustedProxy returns the list of trusted proxy servers as comma-separated list.
22+
// TrustedProxy returns the ranges from which reverse proxy headers can be trusted as comma-separated list.
2323
func (c *Config) TrustedProxy() string {
2424
return strings.Join(c.options.TrustedProxies, ", ")
2525
}
2626

27-
// TrustedProxies returns proxy server ranges from which client and protocol headers can be trusted.
27+
// TrustedProxies returns proxy server ranges from which reverse proxy headers can be trusted.
2828
func (c *Config) TrustedProxies() []string {
2929
return c.options.TrustedProxies
3030
}

internal/config/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ var Flags = CliFlags{
409409
}, Tags: []string{EnvSponsor}}, {
410410
Flag: cli.StringSliceFlag{
411411
Name: "trusted-proxy",
412-
Usage: "`CIDR` range from which IP and HTTPS proxy headers can be trusted",
412+
Usage: "`CIDR` range from which reverse proxy headers can be trusted",
413413
Value: &cli.StringSlice{header.CidrDockerInternal},
414414
EnvVar: "PHOTOPRISM_TRUSTED_PROXY",
415415
}}, {

0 commit comments

Comments
 (0)