Files
FEDEO/docs-site/nginx.conf
florianfederspiel 1908a6441d
All checks were successful
Build and Push Docker Images / verify-docs-sync (push) Successful in 8s
Build and Push Docker Images / build-backend (push) Successful in 15s
Build and Push Docker Images / build-frontend (push) Successful in 14s
Build and Push Docker Images / build-docs (push) Successful in 43s
Behebe Nginx Redirect-Loop für Docusaurus unter /docs
2026-04-22 15:25:42 +02:00

21 lines
359 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /docs {
return 301 /docs/;
}
location / {
try_files $uri $uri/ /docs/index.html /index.html;
}
location ~* \.(?:css|js|map|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}