aboutsummaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 40f4891..9505cbb 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -16,6 +16,7 @@ type Config struct {
TelnetTLS TelnetTLSConfig `yaml:"telnet_tls"`
HTTP HTTPConfig `yaml:"http"`
HTTPS HTTPSConfig `yaml:"https"`
+ AdminHTTP AdminHTTPConfig `yaml:"admin_http"`
AdminHTTPS AdminHTTPSConfig `yaml:"admin_https"`
}
@@ -99,6 +100,11 @@ type HTTPSConfig struct {
Port int `yaml:"port"`
}
+type AdminHTTPConfig struct {
+ Enabled bool `yaml:"enabled"`
+ Port int `yaml:"port"`
+}
+
type AdminHTTPSConfig struct {
Enabled bool `yaml:"enabled"`
Port int `yaml:"port"`
@@ -133,6 +139,10 @@ func Default() *Config {
Enabled: false,
Port: 8443,
},
+ AdminHTTP: AdminHTTPConfig{
+ Enabled: false,
+ Port: 9091,
+ },
AdminHTTPS: AdminHTTPSConfig{
Enabled: false,
Port: 9090,