Files
test-assignment/deploy/web.conf
T

28 lines
631 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
# Host Nginx routes API traffic directly to the API container.
location = /api { return 404; }
location ^~ /api/ { return 404; }
location /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache" always;
}
}