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:
17
deploy/frasa-api.service
Normal file
17
deploy/frasa-api.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=FRASA API Gateway
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/root/frasa-ecosystem/api-gateway
|
||||
EnvironmentFile=/root/frasa-ecosystem/.env
|
||||
Environment=PATH=/root/tools/node22/bin:/usr/local/bin:/usr/bin:/bin
|
||||
ExecStart=/root/tools/node22/bin/node dist/index.js
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
StandardOutput=append:/var/log/frasa-api.log
|
||||
StandardError=append:/var/log/frasa-api.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user