Compare commits

...

1 Commits

Author SHA1 Message Date
fauno 488777367f feat: trusted ips
continuous-integration/drone/pr Build is failing
when traefik is behind a reverse proxy, we need to tell it which
networks to trust with x-real-ip headers
2026-07-28 17:09:57 -03:00
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -225,3 +225,6 @@ WRITE_TIMEOUT=0s
## Enable onion service support ## Enable onion service support
#ONION_ENABLED=1 #ONION_ENABLED=1
# YAML array of trusted subnets
TRUSTED_IPS=
+1 -1
View File
@@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v32 export TRAEFIK_YML_VERSION=v32a
export FILE_PROVIDER_YML_VERSION=v12 export FILE_PROVIDER_YML_VERSION=v12
export ENTRYPOINT_VERSION=v5 export ENTRYPOINT_VERSION=v5
+4
View File
@@ -33,6 +33,10 @@ entrypoints:
to: web-secure to: web-secure
web-secure: web-secure:
address: ":443" address: ":443"
{{ if ne (env "TRUSTED_IPS") "" }}
forwardedHeaders:
trustedIPs: {{ env "TRUSTED_IPS" }}
{{ end }}
transport: transport:
respondingTimeouts: respondingTimeouts:
readTimeout: {{ env "READ_TIMEOUT" }} readTimeout: {{ env "READ_TIMEOUT" }}