server { listen 80; server_name map.cmlite.org; add_header X-Frame-Options "SAMEORIGIN" always; root /usr/share/nginx/public-web/map; index index.html; location / { try_files $uri $uri/ /index.html; } location /api/ { set $upstream_api http://changemaker-v2-api:4000; proxy_pass $upstream_api; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } server { listen 80; server_name influence.cmlite.org; add_header X-Frame-Options "SAMEORIGIN" always; root /usr/share/nginx/public-web/influence; index index.html; location / { try_files $uri $uri/ /index.html; } location /api/ { set $upstream_api http://changemaker-v2-api:4000; proxy_pass $upstream_api; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } }