Files
roncarve-official-web/nginx.conf
T

32 lines
693 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /products/roncarve-harness {
return 301 /products/roncarve-harness/;
}
location = /products/chat-assistant {
absolute_redirect off;
return 301 /products/chat-assistant/;
}
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.html$ {
add_header Cache-Control "no-cache";
try_files $uri =404;
}
location ~* \.(?:css|js|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800, immutable";
try_files $uri =404;
}
}