chore: Remove cloudflare-ip-header middleware
This commit is contained in:
parent
b21a8b833b
commit
1359936c7e
@ -17,6 +17,7 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
python311
|
python311
|
||||||
opentofu
|
opentofu
|
||||||
|
linode-cli
|
||||||
kubectl
|
kubectl
|
||||||
k9s
|
k9s
|
||||||
] ++
|
] ++
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
@ -6,5 +7,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
headers:
|
headers:
|
||||||
customRequestHeaders:
|
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}"
|
X-Forwarded-For: "{Cf-Connecting-Ip}"
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ spec:
|
|||||||
websecure:
|
websecure:
|
||||||
middlewares:
|
middlewares:
|
||||||
- traefik-bouncer@kubernetescrd
|
- traefik-bouncer@kubernetescrd
|
||||||
- traefik-cloudflare-ip-header@kubernetescrd
|
# - traefik-cloudflare-ip-header@kubernetescrd
|
||||||
trustedIPs:
|
trustedIPs:
|
||||||
# https://www.cloudflare.com/ips-v4/#
|
# https://www.cloudflare.com/ips-v4/#
|
||||||
- 173.245.48.0/20
|
- 173.245.48.0/20
|
||||||
|
Loading…
x
Reference in New Issue
Block a user