aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-12-28 14:54:57 +0000
committerNiall Sheridan <nsheridan@gmail.com>2016-12-28 15:01:58 +0000
commitd7129803488e81e6df691161b774908bf801e527 (patch)
tree5391b7ad94435086c5e3a5937e1118580a17edfd /server
parente0a1ccb64a637673195804513902cba6b1d4e97c (diff)
Add LetsEncrypt support
When configured the server will request a TLS certificate for the specified server name from LetsEncrypt
Diffstat (limited to 'server')
-rw-r--r--server/config/config.go24
1 files changed, 13 insertions, 11 deletions
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.