diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-05-22 20:46:09 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-05-22 20:51:47 +0100 |
commit | e00e2820e7d460b464965422aab284c6d3b56c70 (patch) | |
tree | d2ed189f2ddd2ec8f1d177b3451ec089bc9e0a9f /server/config | |
parent | 7230bf7945ace2fd974b2585065dc9aad95a3ef5 (diff) |
Make template directory configurable
Diffstat (limited to 'server/config')
-rw-r--r-- | server/config/config.go | 1 | ||||
-rw-r--r-- | server/config/config_test.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/config/config.go b/server/config/config.go index 7598f0a..8922ff6 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -20,6 +20,7 @@ type Server struct { TLSCert string `mapstructure:"tls_cert"` Port int `mapstructure:"port"` CookieSecret string `mapstructure:"cookie_secret"` + TemplateDir string `mapstructure:"template_dir"` } // Auth holds the configuration specific to the OAuth provider. diff --git a/server/config/config_test.go b/server/config/config_test.go index 6baf76d..e528e7d 100644 --- a/server/config/config_test.go +++ b/server/config/config_test.go @@ -22,6 +22,7 @@ func TestServerConfig(t *testing.T) { a.Equal(server.TLSCert, "server.crt") a.Equal(server.Port, 443) a.Equal(server.CookieSecret, "supersecret") + a.Equal(server.TemplateDir, "templates") } func TestAuthConfig(t *testing.T) { |