2023-05-15 10:53:53 +02:00
|
|
|
# traefik.toml dynamic config (mostly TLS)
|
|
|
|
|
# dynamic config in the static config file will be ignored
|
2023-05-18 11:18:09 +02:00
|
|
|
{%- if https['enabled'] %}
|
2023-05-15 10:53:53 +02:00
|
|
|
[tls]
|
|
|
|
|
[tls.options.default]
|
|
|
|
|
minVersion = "VersionTLS12"
|
2023-05-16 21:12:10 +02:00
|
|
|
cipherSuites = [
|
|
|
|
|
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
|
|
|
|
|
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
|
|
|
|
|
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
|
|
|
|
|
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
|
|
|
|
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
|
|
|
|
|
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305",
|
|
|
|
|
]
|
2023-05-18 11:18:09 +02:00
|
|
|
{%- if https['tls']['cert'] %}
|
2023-05-15 10:53:53 +02:00
|
|
|
[tls.stores.default.defaultCertificate]
|
|
|
|
|
certFile = "{{ https['tls']['cert'] }}"
|
|
|
|
|
keyFile = "{{ https['tls']['key'] }}"
|
2023-05-16 13:05:34 +02:00
|
|
|
{%- endif %}
|
2023-05-15 10:53:53 +02:00
|
|
|
|
2023-05-18 11:18:09 +02:00
|
|
|
{%- if https['letsencrypt']['email'] and https['letsencrypt']['domains'] %}
|
2023-05-15 10:53:53 +02:00
|
|
|
[tls.stores.default.defaultGeneratedCert]
|
|
|
|
|
resolver = "letsencrypt"
|
|
|
|
|
[tls.stores.default.defaultGeneratedCert.domain]
|
|
|
|
|
main = "{{ https['letsencrypt']['domains'][0] }}"
|
|
|
|
|
sans = [
|
2023-05-16 13:05:34 +02:00
|
|
|
{% for domain in https['letsencrypt']['domains'][1:] -%}
|
2023-05-15 10:53:53 +02:00
|
|
|
"{{ domain }}",
|
2023-05-16 13:05:34 +02:00
|
|
|
{%- endfor %}
|
2023-05-15 10:53:53 +02:00
|
|
|
]
|
2023-05-16 13:05:34 +02:00
|
|
|
{%- endif %}
|
2023-05-18 11:18:09 +02:00
|
|
|
{%- endif %}
|