Skip to content

Commit

Permalink
Merge pull request #159 from HSLdevcom/DT-4675
Browse files Browse the repository at this point in the history
DT-4675: Add city bikes to Tampere's instance
  • Loading branch information
vesameskanen authored Sep 14, 2021
2 parents 3b759bd + b3b48cc commit 40336c4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion external.conf
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ location /out/lsl.mattersoft.fi/ {
proxy_set_header Authorization LAHTI_BASIC_AUTH;
}

#Vantaa scooter stations (https://en-api.sharingos.com/v1/open_api/index.ashx?t=station_list)
#Vantaa citybike stations (https://en-api.sharingos.com/v1/open_api/index.ashx?t=station_list)
location /out/en-api.sharingos.com/ {
proxy_pass https://en-api.sharingos.com/;
include allowed-ips.conf;
Expand All @@ -161,6 +161,18 @@ location /out/en-api.sharingos.com/ {
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
}

#Tampere citybike stations (https://en-admin.sharingos.com/GBFS/1048/en/station_status.json, free_bike_status.json, system_regions.json and system_information.json)
location /out/en-admin.sharingos.com/ {
proxy_pass https://en-admin.sharingos.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;
}

#Oulu bike stations (https://poland.nextbike.net/maps/nextbike-official.json?domains=fo)
location /out/poland.nextbike.net/ {
proxy_pass https://poland.nextbike.net/;
Expand Down

0 comments on commit 40336c4

Please sign in to comment.