fix on nginx and astro
Signed-off-by: Omar Sánchez Pizarro <omar.sanchez@pistacero.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user