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

@@ -33,6 +33,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Assets estáticos del dashboard
location ~ ^/dashboard/.*\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
rewrite ^/dashboard/?(.*)$ /$1 break;
proxy_pass http://dashboard:80;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# Dashboard Vue - reescribir /dashboard/* a /* en el contenedor
location /dashboard/ {
# Quitar el prefijo /dashboard antes de pasar al contenedor
@@ -46,6 +55,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Assets estáticos del landing (raíz)
location ~ ^/.*\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
proxy_pass http://landing:80;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# Landing page (Astro) - raíz
location / {
proxy_pass http://landing:80;