From d7129803488e81e6df691161b774908bf801e527 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Wed, 28 Dec 2016 14:54:57 +0000 Subject: Add LetsEncrypt support When configured the server will request a TLS certificate for the specified server name from LetsEncrypt --- server/config/config.go | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'server') diff --git a/server/config/config.go b/server/config/config.go index 2d821f9..5f3f458 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -29,17 +29,19 @@ type Database map[string]string // Server holds the configuration specific to the web server and sessions. type Server struct { - UseTLS bool `mapstructure:"use_tls"` - TLSKey string `mapstructure:"tls_key"` - TLSCert string `mapstructure:"tls_cert"` - Addr string `mapstructure:"address"` - Port int `mapstructure:"port"` - User string `mapstructure:"user"` - CookieSecret string `mapstructure:"cookie_secret"` - CSRFSecret string `mapstructure:"csrf_secret"` - HTTPLogFile string `mapstructure:"http_logfile"` - Database Database `mapstructure:"database"` - Datastore string `mapstructure:"datastore"` // Deprecated. TODO: remove. + UseTLS bool `mapstructure:"use_tls"` + TLSKey string `mapstructure:"tls_key"` + TLSCert string `mapstructure:"tls_cert"` + LetsEncryptServername string `mapstructure:"letsencrypt_servername"` + LetsEncryptCache string `mapstructure:"letsencrypt_cachedir"` + Addr string `mapstructure:"address"` + Port int `mapstructure:"port"` + User string `mapstructure:"user"` + CookieSecret string `mapstructure:"cookie_secret"` + CSRFSecret string `mapstructure:"csrf_secret"` + HTTPLogFile string `mapstructure:"http_logfile"` + Database Database `mapstructure:"database"` + Datastore string `mapstructure:"datastore"` // Deprecated. TODO: remove. } // Auth holds the configuration specific to the OAuth provider. -- cgit v1.2.3