Skip to content
Snippets Groups Projects
Commit f1938666 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: update nginx config

parent 59dd1720
No related branches found
No related tags found
2 merge requests!68Recette,!67Dev
upstream api_node_js {
server service-ram:3000;
}
server {
listen 8080 default_server;
root /usr/share/nginx/html;
index index.html;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
try_files $uri $uri/ $uri/index.html @backend;
}
location /api {
rewrite ^/api/(.*) /$1 break;
proxy_pass http://json-server:3000/api;
location @backend {
rewrite /api/?(.*) /$1 break;
proxy_pass http://api_node_js;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
# Public api redirect
location /base-adresse/base-adresse-nationale/streets {
location /base-adresse/base-adresse-nationale/streets {
proxy_pass https://passerelle.formulaireextranet.grandlyon.com/base-adresse/base-adresse-nationale/streets;
}
location /geocoding/photon/api {
proxy_pass https://download.data.grandlyon.com/geocoding/photon/api;
}
......@@ -38,3 +44,4 @@ server {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment