aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.go b/config.go
index cc7e9d5..88b36e1 100644
--- a/config.go
+++ b/config.go
@@ -29,6 +29,9 @@ type Config struct {
listenAddr string
+ // WuiAddress the address to serve for web user interface.
+ WuiAddress string `ini:"haminer::wui_address"`
+
// AcceptBackend list of backend to be filtered.
AcceptBackend []string `ini:"haminer::accept_backend"`
@@ -45,6 +48,9 @@ type Config struct {
ForwardInterval time.Duration `ini:"haminer::forward_interval"`
listenPort int
+
+ // IsDevelopment only enabled during local development.
+ IsDevelopment bool
}
// NewConfig will create, initialize, and return new config with default