feat: deploy en host LXC (nginx + systemd) y ajustes para mismo-origen

- deploy/nginx-host.conf: nginx del host sirve dist/ de las 4 apps y
  proxifica /api/ a 127.0.0.1:3000 (client_max_body_size 10m)
- deploy/frasa-api.service: API Gateway como servicio systemd
- landing: URLs relativas (/quote/, /client/, /pay/)
- Dockerfiles de apps: ARG VITE_API_URL=/api para builds same-origin
- docker-compose: NGINX_CONF parametrizado (nginx.http.conf sin SSL)
- README: instrucciones para host LXC y nota de DDNS pendiente
This commit is contained in:
2026-08-22 00:05:28 +00:00
parent 0fb92364d8
commit 05f6ceb01a
10 changed files with 132 additions and 19 deletions

View File

@@ -10,7 +10,8 @@ services:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
# NGINX_CONF=nginx.http.conf para modo HTTP local (sin SSL todavia)
- ./nginx/${NGINX_CONF:-nginx.conf}:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro # certs siempre al día tras certbot renew
- certbot_webroot:/var/www/certbot # challenge HTTP-01
depends_on: