games_app/deploy/vps-gateway/.env.example
2026-11-01 17:07:28 +02:00

44 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Passerelle HTTPS partagée (80/443) — Salon + Tloto sans ports dans l’URL.
#
# Prérequis VPS :
# 1. Identifier qui tient 80/443 : sudo ss -tlnp | grep -E ':80|:443'
# 2. Arrêter UNIQUEMENT ce nginx (ex. Salon) pour libérer 80/443
# 3. Arrêter prediqo_nginx_https ( Prediqo ne publie plus 9080/9443 )
# 4. docker network create vps-edge
# 5. Adapter les noms ci-dessous (docker network ls / docker volume ls)
# 6. docker compose up -d (depuis ce dossier)
#
# Puis dans games-project/.env :
# APP_PUBLIC_URL=https://tloto.net
# CORS_ORIGINS=https://tloto.net,https://www.tloto.net
# VITE_API_BASE_URL=https://tloto.net
# VITE_WS_URL=wss://tloto.net/ws/v1/games/candle-predict
# et rebuild : docker compose --profile https-dns up -d --build prediqo-web
# (ou laisser https-dns down et ne garder que backend/web/redis/ws/engine/worker)
#
# Après recreate des backends Prediqo/Salon, si 502 sur /api : docker restart vps_gateway_nginx
# (ou depuis games-project : npm run gateway:reload). Les templates nginx re-résolvent
# les noms Docker via 127.0.0.11 pour limiter ce cas.
CERTBOT_EMAIL=admin@tloto.net
# Domaine principal du certificat Salon (dossier sous live/)
CERT_PRIMARY_DOMAIN=business-mgt.redirectme.net
SALON_DOMAIN1=business-mgt.redirectme.net
SALON_DOMAIN2=bright-salon.redirectme.net
PREDIQO_DOMAIN=tloto.net
PREDIQO_DOMAIN_WWW=www.tloto.net
# Nom du dossier sous /etc/letsencrypt/live/ (cert DNS tloto)
PREDIQO_CERT_NAME=tloto.net
# Réseaux Docker (adapter aux noms réels du VPS)
SALON_DOCKER_NETWORK=salon_management_project_app-net
PREDIQO_DOCKER_NETWORK=games-project_prediqo-net
# Volumes Let's Encrypt
SALON_LETSENCRYPT_VOLUME=salon_management_project_letsencrypt
SALON_CERTBOT_WWW_VOLUME=salon_management_project_certbot-www
PREDIQO_LETSENCRYPT_VOLUME=games-project_letsencrypt