diff --git a/apps/docs/nginx.conf b/apps/docs/nginx.conf new file mode 100644 index 0000000..a380277 --- /dev/null +++ b/apps/docs/nginx.conf @@ -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; + } +}