Skip to content

Commit d478f2b

Browse files
committed
use real ip from fastly in nginx
1 parent 7b9e2f8 commit d478f2b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

platform/ingress-nginx/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44
resources:
55
- https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.1/deploy/static/provider/do/deploy.yaml
6+
- ./nginx-config.yaml
67
patchesStrategicMerge:
78
- |-
89
apiVersion: v1
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: ingress-nginx-controller
5+
namespace: ingress-nginx
6+
data:
7+
enable-real-ip: true
8+
proxy-real-ip-cidr: 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)