forked from coop-cloud/traefik
feat: trusted ips
when traefik is behind a reverse proxy, we need to tell it which networks to trust with x-real-ip headers
This commit is contained in:
@@ -225,3 +225,6 @@ WRITE_TIMEOUT=0s
|
||||
|
||||
## Enable onion service support
|
||||
#ONION_ENABLED=1
|
||||
|
||||
# YAML array of trusted subnets
|
||||
TRUSTED_IPS=
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export TRAEFIK_YML_VERSION=v32
|
||||
export TRAEFIK_YML_VERSION=v32a
|
||||
export FILE_PROVIDER_YML_VERSION=v12
|
||||
export ENTRYPOINT_VERSION=v5
|
||||
|
||||
@@ -33,6 +33,10 @@ entrypoints:
|
||||
to: web-secure
|
||||
web-secure:
|
||||
address: ":443"
|
||||
{{ if ne (env "TRUSTED_IPS") "" }}
|
||||
forwardedHeaders:
|
||||
trustedIPs: {{ env "TRUSTED_IPS" }}
|
||||
{{ end }}
|
||||
transport:
|
||||
respondingTimeouts:
|
||||
readTimeout: {{ env "READ_TIMEOUT" }}
|
||||
|
||||
Reference in New Issue
Block a user