Skip to content

Commit 0ef509b

Browse files
committed
nginx: Remove obsolete real_ip configuration
The configuration for this nginx module was original added in rust-lang#1596, in combination with an IP-based `limit_req` rate limit. The rate limit was lately moved to the application layer (see rust-lang#6875). Since we no longer use the `limit_req` rate limit in the nginx config, it looks like we don't need the `real_ip` config anymore either.
1 parent 6196774 commit 0ef509b

File tree

1 file changed

+0
-139
lines changed

1 file changed

+0
-139
lines changed

config/nginx.conf.erb

Lines changed: 0 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -27,145 +27,6 @@ events {
2727
}
2828

2929
http {
30-
set_real_ip_from 10.0.0.0/8;
31-
set_real_ip_from 127.0.0.0/24;
32-
real_ip_header X-Forwarded-For;
33-
real_ip_recursive on;
34-
35-
# CloudFront IP addresses from http://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips
36-
# Last updated: 2022-03-26
37-
set_real_ip_from 3.10.17.128/25;
38-
set_real_ip_from 3.11.53.0/24;
39-
set_real_ip_from 3.35.130.128/25;
40-
set_real_ip_from 3.101.158.0/23;
41-
set_real_ip_from 3.128.93.0/24;
42-
set_real_ip_from 3.134.215.0/24;
43-
set_real_ip_from 3.231.2.0/25;
44-
set_real_ip_from 3.234.232.224/27;
45-
set_real_ip_from 3.236.48.0/23;
46-
set_real_ip_from 3.236.169.192/26;
47-
set_real_ip_from 13.32.0.0/15;
48-
set_real_ip_from 13.35.0.0/16;
49-
set_real_ip_from 13.48.32.0/24;
50-
set_real_ip_from 13.54.63.128/26;
51-
set_real_ip_from 13.59.250.0/26;
52-
set_real_ip_from 13.113.196.64/26;
53-
set_real_ip_from 13.113.203.0/24;
54-
set_real_ip_from 13.124.199.0/24;
55-
set_real_ip_from 13.210.67.128/26;
56-
set_real_ip_from 13.224.0.0/14;
57-
set_real_ip_from 13.228.69.0/24;
58-
set_real_ip_from 13.233.177.192/26;
59-
set_real_ip_from 13.249.0.0/16;
60-
set_real_ip_from 15.158.0.0/16;
61-
set_real_ip_from 15.188.184.0/24;
62-
set_real_ip_from 15.207.13.128/25;
63-
set_real_ip_from 15.207.213.128/25;
64-
set_real_ip_from 18.64.0.0/14;
65-
set_real_ip_from 18.154.0.0/15;
66-
set_real_ip_from 18.160.0.0/15;
67-
set_real_ip_from 18.164.0.0/15;
68-
set_real_ip_from 18.172.0.0/15;
69-
set_real_ip_from 18.192.142.0/23;
70-
set_real_ip_from 18.200.212.0/23;
71-
set_real_ip_from 18.216.170.128/25;
72-
set_real_ip_from 18.229.220.192/26;
73-
set_real_ip_from 18.238.0.0/15;
74-
set_real_ip_from 18.244.0.0/15;
75-
set_real_ip_from 34.195.252.0/24;
76-
set_real_ip_from 34.216.51.0/25;
77-
set_real_ip_from 34.223.12.224/27;
78-
set_real_ip_from 34.223.80.192/26;
79-
set_real_ip_from 34.226.14.0/24;
80-
set_real_ip_from 35.158.136.0/24;
81-
set_real_ip_from 35.162.63.192/26;
82-
set_real_ip_from 35.167.191.128/26;
83-
set_real_ip_from 36.103.232.0/25;
84-
set_real_ip_from 36.103.232.128/26;
85-
set_real_ip_from 44.227.178.0/24;
86-
set_real_ip_from 44.234.90.252/30;
87-
set_real_ip_from 44.234.108.128/25;
88-
set_real_ip_from 52.15.127.128/26;
89-
set_real_ip_from 52.46.0.0/18;
90-
set_real_ip_from 52.47.139.0/24;
91-
set_real_ip_from 52.52.191.128/26;
92-
set_real_ip_from 52.56.127.0/25;
93-
set_real_ip_from 52.57.254.0/24;
94-
set_real_ip_from 52.66.194.128/26;
95-
set_real_ip_from 52.78.247.128/26;
96-
set_real_ip_from 52.82.128.0/19;
97-
set_real_ip_from 52.84.0.0/15;
98-
set_real_ip_from 52.124.128.0/17;
99-
set_real_ip_from 52.199.127.192/26;
100-
set_real_ip_from 52.212.248.0/26;
101-
set_real_ip_from 52.220.191.0/26;
102-
set_real_ip_from 52.222.128.0/17;
103-
set_real_ip_from 54.182.0.0/16;
104-
set_real_ip_from 54.192.0.0/16;
105-
set_real_ip_from 54.230.0.0/17;
106-
set_real_ip_from 54.230.128.0/18;
107-
set_real_ip_from 54.230.200.0/21;
108-
set_real_ip_from 54.230.208.0/20;
109-
set_real_ip_from 54.230.224.0/19;
110-
set_real_ip_from 54.233.255.128/26;
111-
set_real_ip_from 54.239.128.0/18;
112-
set_real_ip_from 54.239.192.0/19;
113-
set_real_ip_from 54.240.128.0/18;
114-
set_real_ip_from 58.254.138.0/25;
115-
set_real_ip_from 58.254.138.128/26;
116-
set_real_ip_from 64.252.64.0/18;
117-
set_real_ip_from 64.252.128.0/18;
118-
set_real_ip_from 65.8.0.0/16;
119-
set_real_ip_from 65.9.0.0/17;
120-
set_real_ip_from 65.9.128.0/18;
121-
set_real_ip_from 70.132.0.0/18;
122-
set_real_ip_from 71.152.0.0/17;
123-
set_real_ip_from 99.79.169.0/24;
124-
set_real_ip_from 99.84.0.0/16;
125-
set_real_ip_from 99.86.0.0/16;
126-
set_real_ip_from 108.138.0.0/15;
127-
set_real_ip_from 108.156.0.0/14;
128-
set_real_ip_from 116.129.226.0/25;
129-
set_real_ip_from 116.129.226.128/26;
130-
set_real_ip_from 118.193.97.64/26;
131-
set_real_ip_from 118.193.97.128/25;
132-
set_real_ip_from 119.147.182.0/25;
133-
set_real_ip_from 119.147.182.128/26;
134-
set_real_ip_from 120.52.12.64/26;
135-
set_real_ip_from 120.52.22.96/27;
136-
set_real_ip_from 120.52.39.128/27;
137-
set_real_ip_from 120.52.153.192/26;
138-
set_real_ip_from 120.232.236.0/25;
139-
set_real_ip_from 120.232.236.128/26;
140-
set_real_ip_from 120.253.240.192/26;
141-
set_real_ip_from 120.253.241.160/27;
142-
set_real_ip_from 120.253.245.128/26;
143-
set_real_ip_from 120.253.245.192/27;
144-
set_real_ip_from 130.176.0.0/17;
145-
set_real_ip_from 130.176.128.0/18;
146-
set_real_ip_from 130.176.192.0/19;
147-
set_real_ip_from 130.176.224.0/20;
148-
set_real_ip_from 143.204.0.0/16;
149-
set_real_ip_from 144.220.0.0/16;
150-
set_real_ip_from 180.163.57.0/25;
151-
set_real_ip_from 180.163.57.128/26;
152-
set_real_ip_from 204.246.164.0/22;
153-
set_real_ip_from 204.246.168.0/22;
154-
set_real_ip_from 204.246.172.0/24;
155-
set_real_ip_from 204.246.173.0/24;
156-
set_real_ip_from 204.246.174.0/23;
157-
set_real_ip_from 204.246.176.0/20;
158-
set_real_ip_from 205.251.200.0/21;
159-
set_real_ip_from 205.251.208.0/20;
160-
set_real_ip_from 205.251.249.0/24;
161-
set_real_ip_from 205.251.250.0/23;
162-
set_real_ip_from 205.251.252.0/23;
163-
set_real_ip_from 205.251.254.0/24;
164-
set_real_ip_from 216.137.32.0/19;
165-
set_real_ip_from 223.71.11.0/27;
166-
set_real_ip_from 223.71.71.96/27;
167-
set_real_ip_from 223.71.71.128/25;
168-
16930
gzip on;
17031
gzip_comp_level 2;
17132
gzip_proxied any;

0 commit comments

Comments
 (0)