-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathexternal.conf
420 lines (389 loc) · 17.6 KB
/
external.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
#smoove citybike api (http://helsinki-fi.smoove.pro/api-public/stations)
location /out/helsinki-fi.smoove.pro/ {
proxy_pass http://helsinki-fi.smoove.pro/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}
#turku smoove realtime api (http://data.foli.fi/gtfs-rt/reittiopas)
location /out/data.foli.fi/ {
proxy_pass http://data.foli.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}
#oulu rt (https://oulu.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/oulu.mattersoft.fi/ {
proxy_pass https://oulu.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization OULU_RT_BASIC_AUTH;
}
#new livi gtfs rt (https://tyokalu.navici.com/joukkoliikenne/manual-gtfsrt/api/gtfsrt/alerts)
location /out/tyokalu.navici.com/ {
proxy_pass https://tyokalu.navici.com/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}
#kuopio gtfs rt (https://vilkku.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/vilkku.mattersoft.fi/ {
proxy_pass https://vilkku.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization VILKKU_BASIC_AUTH;
}
#joensuu gtfs rt (https://jojo.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/jojo.mattersoft.fi/ {
proxy_pass https://jojo.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization JOJO_BASIC_AUTH;
}
#lappeenranta gtfs rt (https://lappeenranta.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/lappeenranta.mattersoft.fi/ {
proxy_pass https://lappeenranta.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization LAPPEENRANTA_BASIC_AUTH;
}
#jyvaskyla gtfs rt (https://linkki.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate)
location /out/linkki.mattersoft.fi/ {
proxy_pass https://linkki.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization LINKKI_BASIC_AUTH;
}
#varely (seutuplus) gtfs (https://varelyadmin.mattersoft.fi/feeds/102.zip)
location /out/varelyadmin.mattersoft.fi/ {
proxy_pass https://varelyadmin.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization VARELY_BASIC_AUTH;
}
#varely (seutuplus) gtfs rt (https://varely.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions)
location /out/varely.mattersoft.fi/ {
proxy_pass https://varely.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization VARELY_RT_BASIC_AUTH;
}
#tampere gtfs rt new (https://tre.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions)
location /out/tre.mattersoft.fi/ {
proxy_pass https://tre.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization NEW_LISSU_BASIC_AUTH;
}
#tampere test gtfs rt (https://nysse.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions)
location /out/nysse.mattersoft.fi/ {
proxy_pass https://nysse.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization NYSSE_BASIC_AUTH;
}
#lmj gtfs rt new (https://lmj.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions)
location /out/lmj.mattersoft.fi/ {
proxy_pass https://lmj.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization LMJ_BASIC_AUTH;
}
#lahti gtfs rt (https://lsl.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/lsl.mattersoft.fi/ {
proxy_pass https://lsl.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization LAHTI_BASIC_AUTH;
}
#Vilkku (Kuopio) bike stations (https://tkhskuopiostrg.blob.core.windows.net/gbfs/gbfs.json)
location /out/tkhskuopiostrg.blob.core.windows.net/ {
proxy_pass https://tkhskuopiostrg.blob.core.windows.net/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid any 60s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}
#hameenlinna gtfs rt (https://hameenlinna.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/hameenlinna.mattersoft.fi/ {
proxy_pass https://hameenlinna.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization HAMEENLINNA_BASIC_AUTH;
}
#mikkeli gtfs rt (https://mikkeli.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/mikkeli.mattersoft.fi/ {
proxy_pass https://mikkeli.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization MIKKELI_BASIC_AUTH;
}
#vaasa gtfs rt (https://lifti.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/lifti.mattersoft.fi/ {
proxy_pass https://lifti.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization VAASA_BASIC_AUTH;
}
#salo gtfs rt (https://paikku.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/paikku.mattersoft.fi/ {
proxy_pass https://paikku.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization SALO_BASIC_AUTH;
}
#kouvola gtfs rt (https://koutsi.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/koutsi.mattersoft.fi/ {
proxy_pass https://koutsi.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization KOUVOLA_BASIC_AUTH;
}
#kotka gtfs rt (https://jonnejaminne.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/jonnejaminne.mattersoft.fi/ {
proxy_pass https://jonnejaminne.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization KOTKA_BASIC_AUTH;
}
#rovaniemi gtfs rt (https://linkkari.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/linkkari.mattersoft.fi/ {
proxy_pass https://linkkari.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization ROVANIEMI_BASIC_AUTH;
}
#kajaani gtfs rt (https://kajaani.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/kajaani.mattersoft.fi/ {
proxy_pass https://kajaani.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization KAJAANI_BASIC_AUTH;
}
#rauma gtfs rt (https://rauma.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/rauma.mattersoft.fi/ {
proxy_pass https://rauma.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization RAUMA_RT_BASIC_AUTH;
}
#pori gtfs rt (https://pjl.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/pjl.mattersoft.fi/ {
proxy_pass https://pjl.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization PORI_RT_BASIC_AUTH;
}
#rauma gtfs (https://raumaadmin.mattersoft.fi/feeds/233.zip)
location /out/raumaadmin.mattersoft.fi/ {
proxy_pass https://raumaadmin.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization RAUMA_STATIC_BASIC_AUTH;
}
#donkey citybike api (for example https://stables.donkey.bike/api/public/gbfs/2/donkey_lappeenranta/gbfs.json)
location /out/stables.donkey.bike/ {
proxy_pass https://stables.donkey.bike/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_ssl_server_name on;
}
#giravolta (seatcode) citybike api for vantaa
#for example https://vantaa-api.giravolta.io/api-opendata/gbfs/2_3/system_information get sent to
#https://api.giravolta.io/api-opendata/gbfs/2_3/system_information with correct authentication header
#replace urls in the discovery call with proxy address
location = /out/vantaa-api.giravolta.io/api-opendata/gbfs/2_3/gbfs {
proxy_pass https://api.giravolta.io/api-opendata/gbfs/2_3/gbfs;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
#Default caching would use the $proxy_host so we need custom rule to use request host
proxy_cache_key $scheme$host$request_uri;
proxy_set_header Authorization GIRAVOLTA_VANTAA_AUTH;
sub_filter 'https://api.giravolta.io' 'http://digitransit-proxy:8080/out/vantaa-api.giravolta.io';
sub_filter_once off;
sub_filter_types *;
}
#giravolta api calls for vantaa
location /out/vantaa-api.giravolta.io/ {
proxy_pass https://api.giravolta.io/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid any 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
#Default caching would use the $proxy_host so we need custom rule to use request host
proxy_cache_key $scheme$host$request_uri;
proxy_set_header Authorization GIRAVOLTA_VANTAA_AUTH;
}
#Mankeli (Lahti) bike stations (https://tkhslahtistorage.blob.core.windows.net/gbfs/gbfs.json)
location /out/tkhslahtistorage.blob.core.windows.net/ {
proxy_pass https://tkhslahtistorage.blob.core.windows.net/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid any 60s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}
#Raasepori rt (https://bosse.mattersoft.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealert and vehicleposition)
location /out/bosse.mattersoft.fi/ {
proxy_pass https://bosse.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization RAASEPORI_RT_BASIC_AUTH;
}
#WalttiTest gtfs (https://lmjadmin.mattersoft.fi/feeds/229.zip)
location /out/lmjadmin.mattersoft.fi/ {
proxy_pass https://lmjadmin.mattersoft.fi/;
include allowed-ips.conf;
proxy_cache ext_cache;
proxy_cache_valid 200 30s;
proxy_cache_lock on;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie;
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
proxy_set_header Authorization WALTTI_TEST_STATIC_BASIC_AUTH;
}