Skip to content

Commit 48f2bb4

Browse files
committed
Fix some ip range stuff
1 parent aa27092 commit 48f2bb4

File tree

2 files changed

+2
-187
lines changed

2 files changed

+2
-187
lines changed
Lines changed: 1 addition & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,2 @@
1+
# Intentionally left blank
12

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

src/backend/internal/ip_ranges.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const https = require('https');
44
const fs = require('fs');
55
const _ = require('lodash');
66
const logger = require('../logger').ip_ranges;
7-
const debug_mode = process.env.NODE_ENV !== 'production';
87
const error = require('../lib/error');
98
const internalNginx = require('./nginx');
109
const Liquid = require('liquidjs');
@@ -120,10 +119,6 @@ const internalIpRanges = {
120119
* @returns {Promise}
121120
*/
122121
generateConfig: (ip_ranges) => {
123-
if (debug_mode) {
124-
logger.info('Generating IP Ranges Config', ip_ranges);
125-
}
126-
127122
let renderEngine = Liquid({
128123
root: __dirname + '/../templates/'
129124
});
@@ -142,18 +137,10 @@ const internalIpRanges = {
142137
.parseAndRender(template, {ip_ranges: ip_ranges})
143138
.then(config_text => {
144139
fs.writeFileSync(filename, config_text, {encoding: 'utf8'});
145-
146-
if (debug_mode) {
147-
logger.debug('Wrote config:', filename, config_text);
148-
}
149-
150140
resolve(true);
151141
})
152142
.catch(err => {
153-
if (debug_mode) {
154-
logger.warn('Could not write ' + filename + ':', err.message);
155-
}
156-
143+
logger.warn('Could not write ' + filename + ':', err.message);
157144
reject(new error.ConfigurationError(err.message));
158145
});
159146
});

0 commit comments

Comments
 (0)