server { listen 80; root /usr/share/nginx/html; index index.html; location = /assets/app-config.js { add_header Cache-Control "no-store"; try_files $uri =404; } location = /ngsw-worker.js { add_header Cache-Control "no-cache"; try_files $uri =404; } location = /ngsw.json { add_header Cache-Control "no-cache"; try_files $uri =404; } location /api/ { proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:${PORT}/; } location / { try_files $uri $uri/ /index.html; } }