26 lines
697 B
Nginx Configuration File
26 lines
697 B
Nginx Configuration File
server {
|
|
listen 8080;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
absolute_redirect off;
|
|
|
|
# VitePress cleanUrls: each page is a *.html file on disk
|
|
location = /infrastructure/test-contour/guides {
|
|
return 301 /infrastructure/test-contour/guides/overview;
|
|
}
|
|
location = /infrastructure/test-contour/guides/ {
|
|
return 301 /infrastructure/test-contour/guides/overview;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri.html $uri/ $uri/index.html =404;
|
|
}
|
|
|
|
location ~* \.(html|css|js|json|svg|woff2?|png|jpg|jpeg|gif|ico|webp)$ {
|
|
add_header Cache-Control "public, max-age=3600";
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
}
|