50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
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
|