less static configuration, more variables

This commit is contained in:
2024-05-02 13:34:19 +02:00
parent 92f3d7bc79
commit 09f3ec9f70
2 changed files with 15 additions and 11 deletions

View File

@@ -1,11 +1,13 @@
# General environment
TRAEFIK_VERSION=2.4
TRAEFIK_VERSION=latest
TRAEFIK_CERTRESOLVER=letsencrypt
TRAEFIK_DASHBOARD_WHITELIST=1.2.3.4/24
TRAEFIK_ENABLED=true
TRAEFIK_NETWORK=traefik
TRAEFIK_MATCHRULE=traefik.mydomain.com
TRAEFIK_MATCHRULE=Host(`traefik.mydomain.com`)
TRAEFIK_ROUTER=traefik_mydomain_com
TRAEFIK_HTTP_MIDDLEWARES=dashboard-whitelist,http-to-https
TRAEFIK_HTTPS_MIDDLEWARES=dashboard-whitelist,hsts
# Security
TRAEFIK_TLSENABLED=true
@@ -22,3 +24,7 @@ LETSENCRYPT_EMAIL=admin@mydomain.com
# Debugging
TRAEFIK_ACCESSLOG=false
TRAEFIK_LOGLEVEL=INFO
# Volumes
TRAEFIK_DYNAMIC=./config
TRAEFIK_CERTFILE=./certs.json