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