diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-19 00:25:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-19 00:25:26 +0700 |
| commit | 57c0833153f9cc87ae72954f8876ea438d2552ae (patch) | |
| tree | ab56416f0a30988a62f4cc1bfb2a9a93e414a865 /config.go | |
| parent | 2e619db979d76c3e478d0b0592a569a005dc18c0 (diff) | |
| download | haminer-57c0833153f9cc87ae72954f8876ea438d2552ae.tar.xz | |
[wip] _wui: implement web user interface
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
