aboutsummaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-30 04:43:54 -0400
committerhistoria <[not public]>2026-06-30 04:43:54 -0400
commit98bdef072c843fdd8ccdf85a9b54ab9d32d34187 (patch)
treed4c5c4955ba8e02e895ae0713a2c3439bc93868a /internal/config/config.go
parent712072209ab5e3b3a14ebc0c770b020afe544560 (diff)
downloadthehouseoficarus-98bdef072c843fdd8ccdf85a9b54ab9d32d34187.tar.gz
slop refactor
Diffstat (limited to 'internal/config/config.go')
-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,