Skip to content

Commit 2062711

Browse files
committed
use real ip from fastly in nginx
1 parent 8be7748 commit 2062711

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

platform/ingress-nginx/kustomization.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,14 @@ patches:
2020
namespace: ingress-nginx
2121
spec:
2222
replicas: 3
23+
- target:
24+
kind: ConfigMap
25+
name: ingress-nginx-controller
26+
namespace: ingress-nginx
27+
patch: |
28+
- op: add
29+
path: /data/enable-real-ip
30+
value: "true"
31+
- op: add
32+
path: /data/proxy-real-ip-cidr
33+
value: "23.235.32.0/20,43.249.72.0/22,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16,2a04:4e40::/32,2a04:4e42::/32"

0 commit comments

Comments
 (0)