Archived
1
0
Fork 0

Add TLS configuration

Golang HTTPS server isn't secure by default. This commit
introduces TLS minimum version and ciphers list to set up a
secure TLS service.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2019-04-13 16:30:04 +02:00
parent 0023bb52ef
commit be00ca79c0
No known key found for this signature in database
GPG key ID: 5061AE6DCA7C6B50
4 changed files with 113 additions and 17 deletions

View file

@ -4,6 +4,14 @@ frontend:
port: 8443
certfile: /path/to/certificate.pem
keyfile: /pat/to/keyfile.key
tls-ciphers:
- 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_AES_128_CBC_SHA256
- TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
tls-min-version: TLSv1.1
backend:
host: 127.0.0.1
port: 8008