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

@@ -4,6 +4,9 @@ WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
# URL del API horneada en el build (detras de NGINX es same-origin)
ARG VITE_API_URL=/api
ENV VITE_API_URL=$VITE_API_URL
RUN npm run build
# Etapa 2: servidor estático