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:
commit
0efdd63427
3 changed files with 18 additions and 16 deletions
11
config/dynamic/tls.yml
Normal file
11
config/dynamic/tls.yml
Normal 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
|
|
@ -34,6 +34,10 @@
|
||||||
exposedByDefault = false
|
exposedByDefault = false
|
||||||
defaultRule = "Host(`{{ normalize .Name }}.docker.localhost`)"
|
defaultRule = "Host(`{{ normalize .Name }}.docker.localhost`)"
|
||||||
|
|
||||||
|
[providers.file]
|
||||||
|
directory = "/etc/traefik/dynamic"
|
||||||
|
watch = true
|
||||||
|
|
||||||
[certificatesResolvers.default.acme]
|
[certificatesResolvers.default.acme]
|
||||||
email = "hostmaster@zom.bi"
|
email = "hostmaster@zom.bi"
|
||||||
storage = "/cert/acme.json"
|
storage = "/cert/acme.json"
|
||||||
|
@ -49,17 +53,3 @@
|
||||||
[[tls.certificates]]
|
[[tls.certificates]]
|
||||||
certFile = "cert/grun.host.origin.pem"
|
certFile = "cert/grun.host.origin.pem"
|
||||||
keyFile = "cert/grun.host.origin.key"
|
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"
|
|
|
@ -2,7 +2,7 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
proxy:
|
proxy:
|
||||||
image: traefik:v2.1
|
image: traefik:v2.3
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
@ -10,6 +10,7 @@ services:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
- "./cert/:/cert/"
|
- "./cert/:/cert/"
|
||||||
- "./config/:/etc/traefik/:ro"
|
- "./config/:/etc/traefik/:ro"
|
||||||
|
- "./config/dynamic/:/etc/traefik/dynamic/:ro"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true" # set to true to expose the Monitoring & API
|
- "traefik.enable=true" # set to true to expose the Monitoring & API
|
||||||
# middleware redirect
|
# middleware redirect
|
||||||
|
|
Loading…
Reference in a new issue