# Basis-Konfiguration
app_name: michaelschiemer
app_domain: test.michaelschiemer.de
app_email: kontakt@michaelschiemer.de

# Verzeichnisse
project_root: "{{ playbook_dir | dirname }}"
app_root: /var/www/{{ app_name }}
app_public: "{{ app_root }}/public"

# Docker
docker_version: "20.10"
docker_compose_version: "2.24.5"

# Benutzer
deploy_user: deploy

# Let's Encrypt
letsencrypt_enabled: true
letsencrypt_certbot_method: webroot  # oder standalone oder nginx


#netcup_customer_id: "218722"
#netcup_api_key: "dmJINUMyNjRmOG1aNDViajZHN2JkOTFRUjU3ckE5ZjJ1Zm1vUz"
#netcup_api_password: "iGWL8Hl4m93DgESsP/MPXmtDd0hEVkZ3480Na0psTlXRALnopl"
#netcup_vserver_id: "v2202309206672239295"


# fallback_ip:

wg_all_clients_private_keys:
  michael: "PITbFZ3UfY5vD5dYUCELO37Qo2W8I4R8+r6D9CeMrm4="
---
# Allgemeine Variablen für alle Hosts
---
# Globale Variablen für alle Umgebungen

# Docker-Konfiguration
docker_compose_version: "1.29.2"

# Nginx-Konfiguration
nginx_worker_processes: auto
nginx_worker_connections: 1024

# Verwendeter PHP-Container
php_version: "8.1"

# Allgemeine Anwendungsvariablen
app_name: "michaelschiemer"
app_env: "production"
# Docker-Einstellungen
docker_version: "20.10"
docker_compose_version: "2.24.5"
docker_install_compose: true
docker_user: "{{ ansible_user | default('deploy') }}"

# Deployment-Verzeichnisse
deploy_root: /var/www/michaelschiemer
deploy_public: "{{ deploy_root }}/public"
docker_compose_project_path: "{{ deploy_root }}"

# Anwendungsvariablen
project_root: "{{ playbook_dir }}/../.."
project_source: "{{ playbook_dir }}/../.."
app_domain: "{{ hostvars[inventory_hostname]['ansible_host'] | default(inventory_hostname) }}"
---
# Variablen für alle Gruppen

# Standardwerte für Deployment
deploy_root: /var/www/michaelschiemer
deploy_public: "{{ deploy_root }}/public"
deploy_user: "{{ ansible_user | default('deploy') }}"

# Projektpfade
project_source: "{{ playbook_dir }}/../.."
project_root: "{{ playbook_dir }}/../.."

# Docker-Konfiguration
docker_compose_project_path: "{{ deploy_root }}"

# Standard-Domain (wird normalerweise durch umgebungsspezifische Variablen überschrieben)
app_domain: "localhost"

# Standard Nginx-Konfiguration
nginx_worker_processes: "auto"
nginx_worker_connections: 1024

wireguard_clients:
  - name: michael
    address: 10.8.0.2
    public_key: DEIN_PUBLIC_KEY
