-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from HSLdevcom/ext-proxy
Ext proxy
- Loading branch information
Showing
8 changed files
with
663 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#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 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 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 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 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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.