Skip to content

Commit f192748

Browse files
committed
Use x-real-ip header for the real-ip module
1 parent 96f401c commit f192748

File tree

2 files changed

+3
-197
lines changed

2 files changed

+3
-197
lines changed
Lines changed: 2 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -1,196 +1,2 @@
1-
2-
set_real_ip_from 144.220.0.0/16;
3-
4-
set_real_ip_from 52.124.128.0/17;
5-
6-
set_real_ip_from 54.230.0.0/16;
7-
8-
set_real_ip_from 54.239.128.0/18;
9-
10-
set_real_ip_from 52.82.128.0/19;
11-
12-
set_real_ip_from 99.84.0.0/16;
13-
14-
set_real_ip_from 204.246.172.0/24;
15-
16-
set_real_ip_from 205.251.192.0/19;
17-
18-
set_real_ip_from 54.239.192.0/19;
19-
20-
set_real_ip_from 70.132.0.0/18;
21-
22-
set_real_ip_from 13.32.0.0/15;
23-
24-
set_real_ip_from 13.224.0.0/14;
25-
26-
set_real_ip_from 13.35.0.0/16;
27-
28-
set_real_ip_from 204.246.164.0/22;
29-
30-
set_real_ip_from 204.246.168.0/22;
31-
32-
set_real_ip_from 71.152.0.0/17;
33-
34-
set_real_ip_from 216.137.32.0/19;
35-
36-
set_real_ip_from 205.251.249.0/24;
37-
38-
set_real_ip_from 99.86.0.0/16;
39-
40-
set_real_ip_from 52.46.0.0/18;
41-
42-
set_real_ip_from 52.84.0.0/15;
43-
44-
set_real_ip_from 204.246.173.0/24;
45-
46-
set_real_ip_from 130.176.0.0/16;
47-
48-
set_real_ip_from 64.252.64.0/18;
49-
50-
set_real_ip_from 204.246.174.0/23;
51-
52-
set_real_ip_from 64.252.128.0/18;
53-
54-
set_real_ip_from 205.251.254.0/24;
55-
56-
set_real_ip_from 143.204.0.0/16;
57-
58-
set_real_ip_from 205.251.252.0/23;
59-
60-
set_real_ip_from 204.246.176.0/20;
61-
62-
set_real_ip_from 13.249.0.0/16;
63-
64-
set_real_ip_from 54.240.128.0/18;
65-
66-
set_real_ip_from 205.251.250.0/23;
67-
68-
set_real_ip_from 52.222.128.0/17;
69-
70-
set_real_ip_from 54.182.0.0/16;
71-
72-
set_real_ip_from 54.192.0.0/16;
73-
74-
set_real_ip_from 13.124.199.0/24;
75-
76-
set_real_ip_from 34.226.14.0/24;
77-
78-
set_real_ip_from 52.15.127.128/26;
79-
80-
set_real_ip_from 35.158.136.0/24;
81-
82-
set_real_ip_from 52.57.254.0/24;
83-
84-
set_real_ip_from 18.216.170.128/25;
85-
86-
set_real_ip_from 13.52.204.0/23;
87-
88-
set_real_ip_from 13.54.63.128/26;
89-
90-
set_real_ip_from 13.59.250.0/26;
91-
92-
set_real_ip_from 13.210.67.128/26;
93-
94-
set_real_ip_from 35.167.191.128/26;
95-
96-
set_real_ip_from 52.47.139.0/24;
97-
98-
set_real_ip_from 52.199.127.192/26;
99-
100-
set_real_ip_from 52.212.248.0/26;
101-
102-
set_real_ip_from 52.66.194.128/26;
103-
104-
set_real_ip_from 13.113.203.0/24;
105-
106-
set_real_ip_from 99.79.168.0/23;
107-
108-
set_real_ip_from 34.195.252.0/24;
109-
110-
set_real_ip_from 35.162.63.192/26;
111-
112-
set_real_ip_from 34.223.12.224/27;
113-
114-
set_real_ip_from 52.56.127.0/25;
115-
116-
set_real_ip_from 34.223.80.192/26;
117-
118-
set_real_ip_from 13.228.69.0/24;
119-
120-
set_real_ip_from 34.216.51.0/25;
121-
122-
set_real_ip_from 3.231.2.0/25;
123-
124-
set_real_ip_from 54.233.255.128/26;
125-
126-
set_real_ip_from 18.200.212.0/23;
127-
128-
set_real_ip_from 52.52.191.128/26;
129-
130-
set_real_ip_from 3.234.232.224/27;
131-
132-
set_real_ip_from 52.78.247.128/26;
133-
134-
set_real_ip_from 52.220.191.0/26;
135-
136-
set_real_ip_from 34.232.163.208/29;
137-
138-
set_real_ip_from 2600:9000:eee::/48;
139-
140-
set_real_ip_from 2600:9000:4000::/36;
141-
142-
set_real_ip_from 2600:9000:3000::/36;
143-
144-
set_real_ip_from 2600:9000:f000::/36;
145-
146-
set_real_ip_from 2600:9000:fff::/48;
147-
148-
set_real_ip_from 2600:9000:2000::/36;
149-
150-
set_real_ip_from 2600:9000:1000::/36;
151-
152-
set_real_ip_from 2600:9000:ddd::/48;
153-
154-
set_real_ip_from 2600:9000:5300::/40;
155-
156-
set_real_ip_from 173.245.48.0/20;
157-
158-
set_real_ip_from 103.21.244.0/22;
159-
160-
set_real_ip_from 103.22.200.0/22;
161-
162-
set_real_ip_from 103.31.4.0/22;
163-
164-
set_real_ip_from 141.101.64.0/18;
165-
166-
set_real_ip_from 108.162.192.0/18;
167-
168-
set_real_ip_from 190.93.240.0/20;
169-
170-
set_real_ip_from 188.114.96.0/20;
171-
172-
set_real_ip_from 197.234.240.0/22;
173-
174-
set_real_ip_from 198.41.128.0/17;
175-
176-
set_real_ip_from 162.158.0.0/15;
177-
178-
set_real_ip_from 104.16.0.0/12;
179-
180-
set_real_ip_from 172.64.0.0/13;
181-
182-
set_real_ip_from 131.0.72.0/22;
183-
184-
set_real_ip_from 2400:cb00::/32;
185-
186-
set_real_ip_from 2606:4700::/32;
187-
188-
set_real_ip_from 2803:f800::/32;
189-
190-
set_real_ip_from 2405:b500::/32;
191-
192-
set_real_ip_from 2405:8100::/32;
193-
194-
set_real_ip_from 2a06:98c0::/29;
195-
196-
set_real_ip_from 2c0f:f248::/32;
1+
# This should be left blank is it is populated programatically
2+
# by the application backend.

docker/rootfs/etc/nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ http {
6666
# NPM generated CDN ip ranges:
6767
include conf.d/include/ip_ranges.conf;
6868
# always put the following 2 lines after ip subnets:
69-
real_ip_header X-Forwarded-For;
69+
real_ip_header X-Real-IP;
7070
real_ip_recursive on;
7171

7272
# Files generated by NPM

0 commit comments

Comments
 (0)