chore: add ansible backend docker frontend-prep

This commit is contained in:
2026-01-21 13:05:13 +01:00
parent 5a280b6b01
commit 943fe4de7d
14930 changed files with 2341433 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
postgres_version: "16"
postgres_databases:
- name: gestion_db
owner: postgres
postgres_password: "VotreMotDePasseSecure123!"
# Redis Configuration
redis_bind: "127.0.0.1"
redis_port: 6379
redis_maxmemory: "512mb"
redis_maxmemory_policy: "allkeys-lru"
redis_password: "UltrasecretMdp123!"
# ============================================
# Configuration Nginx et Applications
# ============================================
nginx_app_name: "nantais-livraison"
nginx_domain: "{{ ansible_default_ipv4.address }}"
directory: "/home/ubuntu"
tunnel_log: "/var/log/tunnel.log"
tunnel_log_error: "/var/log/tunnel-error.log"
# Chemins des applications (bonnes pratiques)
nginx_frontend_path: "/home/ubuntu/frontend"
backend_dir: "/home/ubuntu/backend"
backend_binary: "/home/ubuntu/backend/main"
docker_dir: "/home/ubuntu/docker"
frontend_port: 5173
backend_dir_docker: "/home/ubuntu/backend/docker"
# Utilisateurs et permissions
user_web: "www-data" # Utilisateur pour les applications web
user_deploy: "ubuntu" # Utilisateur pour le déploiement
user_owner: "root" # Propriétaire des fichiers systemd
docker_user: docker
docker_group: docker
# Backend
backend_port: 8080
# Timeouts
nginx_proxy_timeout: 60
# Cache Duration
nginx_cache_static_duration: "1y"
nginx_cache_media_duration: "1y"
# Upload Size
nginx_max_body_size: "10M"
# Security
nginx_enable_firewall: true