chore: Remove cloudflare-ip-header middleware
This commit is contained in:
parent
b21a8b833b
commit
1359936c7e
@ -17,6 +17,7 @@
|
||||
packages = with pkgs; [
|
||||
python311
|
||||
opentofu
|
||||
linode-cli
|
||||
kubectl
|
||||
k9s
|
||||
] ++
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
@ -6,5 +7,7 @@ metadata:
|
||||
spec:
|
||||
headers:
|
||||
customRequestHeaders:
|
||||
# This doesn't work
|
||||
# TODO: Possibly use a plugin to rewrite this header? Or confirm whether
|
||||
# cloudflare sends XFF header
|
||||
X-Forwarded-For: "{Cf-Connecting-Ip}"
|
||||
|
||||
|
@ -60,7 +60,7 @@ spec:
|
||||
websecure:
|
||||
middlewares:
|
||||
- traefik-bouncer@kubernetescrd
|
||||
- traefik-cloudflare-ip-header@kubernetescrd
|
||||
# - traefik-cloudflare-ip-header@kubernetescrd
|
||||
trustedIPs:
|
||||
# https://www.cloudflare.com/ips-v4/#
|
||||
- 173.245.48.0/20
|
||||
|
Loading…
x
Reference in New Issue
Block a user