add HTTPS.

This commit is contained in:
m1k1o
2021-03-12 10:47:34 +01:00
parent 3b545e0cec
commit f79da7995a
9 changed files with 125 additions and 12 deletions
+10
View File
@@ -0,0 +1,10 @@
http:
middlewares:
basicauth:
basicAuth:
usersFile: "/usersfile"
httpsredirect:
redirectScheme:
scheme: https
permanent: true
+9
View File
@@ -0,0 +1,9 @@
http:
routers:
redirecttohttps:
entryPoints:
- "web"
middlewares:
- "httpsredirect"
rule: "HostRegexp(`{host:.+}`)"
service: "noop@internal"
+11
View File
@@ -0,0 +1,11 @@
tls:
options:
default:
minVersion: VersionTLS12
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