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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-primary-700 to-teal-700 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
||||
</a>
|
||||
<a
|
||||
href="#instalacion"
|
||||
href="/dashboard/"
|
||||
class="inline-flex items-center justify-center px-8 py-4 text-lg font-semibold text-gray-900 dark:text-gray-100 bg-white/80 dark:bg-gray-800/80 backdrop-blur-sm rounded-xl hover:bg-white dark:hover:bg-gray-800 transition-all duration-300 border-2 border-gray-200 dark:border-gray-700 shadow-lg hover:shadow-xl transform hover:-translate-y-1"
|
||||
>
|
||||
Empezar gratis
|
||||
|
||||
@@ -3,17 +3,13 @@ import Layout from '../layouts/Layout.astro';
|
||||
import Hero from '../components/Hero.astro';
|
||||
import Features from '../components/Features.astro';
|
||||
import Platforms from '../components/Platforms.astro';
|
||||
import HowItWorks from '../components/HowItWorks.astro';
|
||||
import Pricing from '../components/Pricing.astro';
|
||||
import CTA from '../components/CTA.astro';
|
||||
---
|
||||
|
||||
<Layout title="Wallabicher - Monitoriza Marketplaces Automáticamente">
|
||||
<Hero />
|
||||
<Features />
|
||||
<Platforms />
|
||||
<HowItWorks />
|
||||
<Pricing />
|
||||
<CTA />
|
||||
</Layout>
|
||||
|
||||
|
||||
@@ -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