Behebe Nginx Redirect-Loop für Docusaurus unter /docs
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

This commit is contained in:
2026-04-22 15:25:42 +02:00
parent a4735818fb
commit 1908a6441d

View File

@@ -5,8 +5,12 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
location = /docs {
return 301 /docs/;
}
location / { location / {
try_files $uri $uri/ /docs/index.html; try_files $uri $uri/ /docs/index.html /index.html;
} }
location ~* \.(?:css|js|map|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ { location ~* \.(?:css|js|map|jpg|jpeg|gif|png|svg|ico|webp|woff2?)$ {