fix on nginx and astro

Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
Omar Sánchez Pizarro
2026-01-21 01:09:57 +01:00
parent 3acad140c5
commit 626e3342d0
4 changed files with 22 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html/dashboard;
root /usr/share/nginx/html;
index index.html;
# Gzip compression
@@ -17,9 +17,9 @@ server {
try_files $uri =404;
}
# SPA routing - todo desde la raíz del contenedor
location / {
try_files $uri $uri/ /index.html;
# SPA routing - todas las rutas con prefijo /dashboard/
location /dashboard/ {
try_files $uri $uri/ /dashboard/index.html;
}
}