Skip to content
Snippets Groups Projects
Commit e158191e authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Remove unneeded template_dir

parent 11c34d20
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,6 @@ Configuration is divided into three sections: `server`, `auth`, and `ssh`. ...@@ -78,7 +78,6 @@ Configuration is divided into three sections: `server`, `auth`, and `ssh`.
- `tls_cert` : string. Path to the TLS cert. - `tls_cert` : string. Path to the TLS cert.
- `port` : int. Port to listen on. - `port` : int. Port to listen on.
- `cookie_secret`: string. Authentication key for the session cookie. - `cookie_secret`: string. Authentication key for the session cookie.
- `template_dir`: string. Path to html template directory. At present only 'token.html' is required.
### auth ### auth
- `provider` : string. Name of the oauth provider. At present the only valid value is "google". - `provider` : string. Name of the oauth provider. At present the only valid value is "google".
......
...@@ -20,7 +20,6 @@ type Server struct { ...@@ -20,7 +20,6 @@ type Server struct {
TLSCert string `mapstructure:"tls_cert"` TLSCert string `mapstructure:"tls_cert"`
Port int `mapstructure:"port"` Port int `mapstructure:"port"`
CookieSecret string `mapstructure:"cookie_secret"` CookieSecret string `mapstructure:"cookie_secret"`
TemplateDir string `mapstructure:"template_dir"`
} }
// Auth holds the configuration specific to the OAuth provider. // Auth holds the configuration specific to the OAuth provider.
......
...@@ -22,7 +22,6 @@ func TestServerConfig(t *testing.T) { ...@@ -22,7 +22,6 @@ func TestServerConfig(t *testing.T) {
a.Equal(server.TLSCert, "server.crt") a.Equal(server.TLSCert, "server.crt")
a.Equal(server.Port, 443) a.Equal(server.Port, 443)
a.Equal(server.CookieSecret, "supersecret") a.Equal(server.CookieSecret, "supersecret")
a.Equal(server.TemplateDir, "templates")
} }
func TestAuthConfig(t *testing.T) { func TestAuthConfig(t *testing.T) {
......
...@@ -6,8 +6,7 @@ var ServerConfig = []byte(`{ ...@@ -6,8 +6,7 @@ var ServerConfig = []byte(`{
"tls_key": "server.key", "tls_key": "server.key",
"tls_cert": "server.crt", "tls_cert": "server.crt",
"port": 443, "port": 443,
"cookie_secret": "supersecret", "cookie_secret": "supersecret"
"template_dir": "templates"
} }
}`) }`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment