We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fdbc78 commit ff470e0Copy full SHA for ff470e0
1 file changed
Caddyfile
@@ -17,6 +17,9 @@
17
18
# Anonymize ip addresses when forwarding:
19
header_up X-Forwarded-For "\.\d{0,3}(,\s*|$)" ".0$1"
20
+ # Same for IPv6:
21
+ header_up X-Forwarded-For "(?i)^([0-9a-f]{1,4}(?::[0-9a-f]{1,4}){1,3}).*" "$1::"
22
+ # Drop envoy extra address header entirely:
23
header_up -X-Envoy-External-Address
24
}
25
@@ -43,6 +46,9 @@
43
46
44
47
45
48
49
50
51
52
53
54
0 commit comments