Merge pull request 'move tls configuration from static configuration to dynamic configuration' (#2) from tls_options into master

Reviewed-on: #2
This commit is contained in:
bsod 2020-11-13 21:26:32 +01:00
commit 0efdd63427
3 changed files with 18 additions and 16 deletions

11
config/dynamic/tls.yml Normal file
View file

@ -0,0 +1,11 @@
tls:
options:
default:
minVersion: VersionTLS12
cipherSuites:
- TLS_CHACHA20_POLY1305_SHA256
- TLS_AES_128_GCM_SHA256
- TLS_AES_256_GCM_SHA384
- TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

View file

@ -34,6 +34,10 @@
exposedByDefault = false
defaultRule = "Host(`{{ normalize .Name }}.docker.localhost`)"
[providers.file]
directory = "/etc/traefik/dynamic"
watch = true
[certificatesResolvers.default.acme]
email = "hostmaster@zom.bi"
storage = "/cert/acme.json"
@ -48,18 +52,4 @@
keyFile = "cert/bitmask.me.origin.key"
[[tls.certificates]]
certFile = "cert/grun.host.origin.pem"
keyFile = "cert/grun.host.origin.key"
[tls.options]
[tls.options.default]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_CHACHA20_POLY1305_SHA256",
"TLS_AES_128_GCM_SHA256",
"TLS_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
]
[tls.options.mintls13]
minVersion = "VersionTLS13"
keyFile = "cert/grun.host.origin.key"

View file

@ -2,7 +2,7 @@ version: '2'
services:
proxy:
image: traefik:v2.1
image: traefik:v2.3
ports:
- "80:80"
- "443:443"
@ -10,6 +10,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./cert/:/cert/"
- "./config/:/etc/traefik/:ro"
- "./config/dynamic/:/etc/traefik/dynamic/:ro"
labels:
- "traefik.enable=true" # set to true to expose the Monitoring & API
# middleware redirect