feat: add nginx config for docs site serving

This commit is contained in:
germondai
2026-06-22 09:35:00 +02:00
parent 86503d6382
commit bb598dbf0e
+17
View File
@@ -0,0 +1,17 @@
server {
listen 80;
root /usr/share/nginx/html;
gzip on;
gzip_vary on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
location ~* \.(js|css|woff2|svg|ico|png|jpg|webp)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri.html $uri/ /index.html;
}
}