56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
---
|
|
# Default variables for traefik role
|
|
|
|
# Traefik Configuration
|
|
traefik_install_dir: "/opt/traefik"
|
|
traefik_data_dir: "/opt/traefik-data"
|
|
traefik_config_dir: "/opt/traefik-config"
|
|
|
|
# Traefik Image
|
|
traefik_image: "traefik:v3.0"
|
|
traefik_image_tag: "v3.0"
|
|
|
|
# Traefik Configuration
|
|
traefik_dashboard_enabled: true
|
|
traefik_dashboard_port: 8080
|
|
traefik_api_insecure: false
|
|
traefik_api_dashboard: true
|
|
|
|
# ACME Configuration
|
|
traefik_acme_enabled: true
|
|
traefik_acme_email: "admin@example.com"
|
|
# traefik_acme_ca_server should be defined in group_vars or host_vars
|
|
traefik_acme_storage: "/data/acme.json"
|
|
traefik_acme_key_type: "RSA4096"
|
|
|
|
# Entry Points
|
|
traefik_entrypoints:
|
|
web:
|
|
address: ":80"
|
|
websecure:
|
|
address: ":443"
|
|
traefik:
|
|
address: ":8080"
|
|
|
|
# Providers
|
|
traefik_providers:
|
|
docker:
|
|
endpoint: "unix:///var/run/docker.sock"
|
|
exposedByDefault: false
|
|
network: "traefik"
|
|
|
|
# Networks
|
|
traefik_networks:
|
|
- name: "traefik"
|
|
external: false
|
|
|
|
# Logging
|
|
traefik_log_level: "INFO"
|
|
traefik_access_logs: false
|
|
|
|
# Custom Root CA Configuration
|
|
# Users should define these in their group_vars or host_vars
|
|
# traefik_custom_ca_enabled: false
|
|
# traefik_custom_ca_url: "https://your-ca-server.com/root-ca.pem"
|
|
traefik_custom_ca_path: "/etc/traefik/custom-ca.pem"
|
|
traefik_custom_ca_verify_ssl: true
|