This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
forked from HSLdevcom/digitransit-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
external.conf
170 lines (160 loc) · 5.99 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
#smoove citybike api (http://helsinki-fi.smoove.pro/api-public/stations)
location /out/helsinki-fi.smoove.pro/ {
proxy_pass http://helsinki-fi.smoove.pro/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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 citybike api (http://data.foli.fi/citybike/smoove)
location /out/data.foli.fi/ {
proxy_pass http://data.foli.fi/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
}
#hsl park api https://p.hsl.fi/api/v1/facilities.json?limit=-1
location /out/p.hsl.fi/ {
proxy_pass https://p.hsl.fi/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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 realtime api (http://92.62.36.215/RTIX/trip-update)
location /out/92.62.36.215/ {
proxy_pass http://92.62.36.215/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
}
#livi gtfs rt (http://beta.liikennevirasto.fi/joukkoliikenne/manual_gtfsrt/api/gtfsrt/alerts)
location /out/beta.liikennevirasto.fi/ {
proxy_pass https://beta.liikennevirasto.fi/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
}
#tampere gtfs rt old (https://pilottilissu.tampere.fi/api/gtfsrealtime/v1.0/feed/tripupdate, servicealerts and vehiclepositions)
location /out/pilottilissu.tampere.fi/ {
proxy_pass https://pilottilissu.tampere.fi/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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 OLD_LISSU_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/;
allow 172.17.0.0/16;
allow 172.16.0.0/16;
allow 10.32.0.0/16;
deny all;
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;
}