proxy_set_header Accept-Encoding "";
}
+ location /api {
+ proxy_pass https://photon.komoot.de;
+ proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
+ proxy_set_header Accept-Encoding "";
+ }
+
location / {
try_files $uri $uri/ /index.html;
}
"target": "https://nbi:9999",
"secure": false,
"logLevel": "info"
+ },
+ "/api/*": {
+ "target": "https://photon.komoot.de",
+ "secure": false,
+ "logLevel": "info"
}
}
\ No newline at end of file
packageSize: 50,
paginationNumber: 10, //Possible values are 10, 25, 50, 100
packageVersion: version,
- // tslint:disable-next-line: no-http-string
- MAPLATLONGAPI_URL: 'http://photon.komoot.de/api/?q={value}&limit=5',
+ MAPLATLONGAPI_URL: 'api/?q={value}&limit=5',
GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens',
PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects',
USERS_URL: OSM_ADMIN_ENDPOINT + 'users',
packageSize: 50,
paginationNumber: 10, //Possible values are 10, 25, 50, 100
packageVersion: version,
- // tslint:disable-next-line: no-http-string
- MAPLATLONGAPI_URL: 'http://photon.komoot.de/api/?q={value}&limit=5',
+ MAPLATLONGAPI_URL: 'api/?q={value}&limit=5',
GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens',
PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects',
USERS_URL: OSM_ADMIN_ENDPOINT + 'users',