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:
parent
0023bb52ef
commit
be00ca79c0
4 changed files with 113 additions and 17 deletions
|
|
@ -17,11 +17,13 @@ type Config struct {
|
|||
|
||||
// FrontendConfig for storing Frontend settings
|
||||
type FrontendConfig struct {
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Certfile string `yaml:"certfile"`
|
||||
Keyfile string `yaml:"keyfile"`
|
||||
LogFormat string `yaml:"logformat"`
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Certfile string `yaml:"certfile"`
|
||||
Keyfile string `yaml:"keyfile"`
|
||||
TLSMinVersion string `yaml:"tls-min-version"`
|
||||
TLSCiphers []string `yaml:"tls-ciphers"`
|
||||
LogFormat string `yaml:"logformat"`
|
||||
}
|
||||
|
||||
// BackendConfig for storing Backend settings
|
||||
|
|
|
|||
Reference in a new issue