feat: trusted ips #128

Open
fauno wants to merge 1 commits from forwarded-headers into master
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -225,3 +225,6 @@ WRITE_TIMEOUT=0s
## Enable onion service support
#ONION_ENABLED=1
# YAML array of trusted subnets
TRUSTED_IPS=
Review

Nornally unused envs are commented out. Could we also do this here?

Nornally unused envs are commented out. Could we also do this here?
+1 -1
View File
@@ -1,3 +1,3 @@
export TRAEFIK_YML_VERSION=v32
export TRAEFIK_YML_VERSION=v32a
Review

Needs bump to 33, but nice to see others adopting my dirty hacks 😄

Needs bump to 33, but nice to see others adopting my dirty hacks 😄
export FILE_PROVIDER_YML_VERSION=v12
export ENTRYPOINT_VERSION=v5
+4
View File
@@ -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" }}