server { listen 8000; root /app/www/; location /static/ { gzip_static on; try_files $uri $uri /index.html =404; } # mount from config map location /configs/ { add_header Cache-Control "max-age=900"; try_files $uri $uri /index.html =404; } location / { add_header Cache-Control "max-age=900"; index index.html; try_files $uri $uri /index.html =404; } location /health { return 200 'OK'; add_header Content-Type text/plain; } }