mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 12:37:47 +02:00
Optionally return rel="canonical" header (#542)
* set rel="canonical" header * check scheme before setting canonical headers, add documentation
This commit is contained in:
@@ -209,6 +209,7 @@ type config struct {
|
||||
|
||||
TTL int
|
||||
CacheControlPassthrough bool
|
||||
SetCanonicalHeader bool
|
||||
|
||||
SoReuseport bool
|
||||
|
||||
@@ -360,6 +361,7 @@ func configure() error {
|
||||
|
||||
intEnvConfig(&conf.TTL, "IMGPROXY_TTL")
|
||||
boolEnvConfig(&conf.CacheControlPassthrough, "IMGPROXY_CACHE_CONTROL_PASSTHROUGH")
|
||||
boolEnvConfig(&conf.SetCanonicalHeader, "IMGPROXY_SET_CANONICAL_HEADER")
|
||||
|
||||
boolEnvConfig(&conf.SoReuseport, "IMGPROXY_SO_REUSEPORT")
|
||||
|
||||
|
Reference in New Issue
Block a user