aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/config/config.go1
-rw-r--r--server/config/config_test.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/server/config/config.go b/server/config/config.go
index 107ebcc..dc5e0c5 100644
--- a/server/config/config.go
+++ b/server/config/config.go
@@ -29,6 +29,7 @@ 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"`
CookieSecret string `mapstructure:"cookie_secret"`
CSRFSecret string `mapstructure:"csrf_secret"`
diff --git a/server/config/config_test.go b/server/config/config_test.go
index 6baf76d..5752ad0 100644
--- a/server/config/config_test.go
+++ b/server/config/config_test.go
@@ -21,6 +21,7 @@ func TestServerConfig(t *testing.T) {
a.Equal(server.TLSKey, "server.key")
a.Equal(server.TLSCert, "server.crt")
a.Equal(server.Port, 443)
+ a.Equal(server.Addr, "127.0.0.1")
a.Equal(server.CookieSecret, "supersecret")
}