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 {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
root /usr/share/nginx/html/dashboard;
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
# Gzip compression
|
# Gzip compression
|
||||||
@@ -17,9 +17,9 @@ server {
|
|||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# SPA routing - todo desde la raíz del contenedor
|
# SPA routing - todas las rutas con prefijo /dashboard/
|
||||||
location / {
|
location /dashboard/ {
|
||||||
try_files $uri $uri/ /index.html;
|
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>
|
<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>
|
||||||
<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"
|
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
|
Empezar gratis
|
||||||
|
|||||||
@@ -3,17 +3,13 @@ import Layout from '../layouts/Layout.astro';
|
|||||||
import Hero from '../components/Hero.astro';
|
import Hero from '../components/Hero.astro';
|
||||||
import Features from '../components/Features.astro';
|
import Features from '../components/Features.astro';
|
||||||
import Platforms from '../components/Platforms.astro';
|
import Platforms from '../components/Platforms.astro';
|
||||||
import HowItWorks from '../components/HowItWorks.astro';
|
|
||||||
import Pricing from '../components/Pricing.astro';
|
import Pricing from '../components/Pricing.astro';
|
||||||
import CTA from '../components/CTA.astro';
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Wallabicher - Monitoriza Marketplaces Automáticamente">
|
<Layout title="Wallabicher - Monitoriza Marketplaces Automáticamente">
|
||||||
<Hero />
|
<Hero />
|
||||||
<Features />
|
<Features />
|
||||||
<Platforms />
|
<Platforms />
|
||||||
<HowItWorks />
|
|
||||||
<Pricing />
|
<Pricing />
|
||||||
<CTA />
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,15 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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
|
# Dashboard Vue - reescribir /dashboard/* a /* en el contenedor
|
||||||
location /dashboard/ {
|
location /dashboard/ {
|
||||||
# Quitar el prefijo /dashboard antes de pasar al contenedor
|
# Quitar el prefijo /dashboard antes de pasar al contenedor
|
||||||
@@ -46,6 +55,14 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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
|
# Landing page (Astro) - raíz
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://landing:80;
|
proxy_pass http://landing:80;
|
||||||
|
|||||||
Reference in New Issue
Block a user