Fetching the location from API changed to proxy
* The location based search for DC API is changed based on the proxy
rule
Change-Id: I30b1fc328787474def41de5997dce27d767e0d84
Signed-off-by: Barath Kumar R <barath.r@tataelxsi.co.in>
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 1d3f29d..d168aa1 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -28,6 +28,12 @@
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;
}