aboutsummaryrefslogtreecommitdiff
path: root/internal/config/config_eduserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config_eduserver.go')
-rw-r--r--internal/config/config_eduserver.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/config/config_eduserver.go b/internal/config/config_eduserver.go
index 02743041..a2ff3697 100644
--- a/internal/config/config_eduserver.go
+++ b/internal/config/config_eduserver.go
@@ -3,16 +3,15 @@ package config
type EDUServer struct {
Matrix *Global `yaml:"-"`
- Listen Address `yaml:"listen"`
- Bind Address `yaml:"bind"`
+ InternalAPI InternalAPIOptions `yaml:"internal_api"`
}
func (c *EDUServer) Defaults() {
- c.Listen = "localhost:7778"
- c.Bind = "localhost:7778"
+ c.InternalAPI.Listen = "http://localhost:7778"
+ c.InternalAPI.Connect = "http://localhost:7778"
}
func (c *EDUServer) Verify(configErrs *ConfigErrors, isMonolith bool) {
- checkNotEmpty(configErrs, "edu_server.listen", string(c.Listen))
- checkNotEmpty(configErrs, "edu_server.bind", string(c.Bind))
+ checkURL(configErrs, "edu_server.internal_api.listen", string(c.InternalAPI.Listen))
+ checkURL(configErrs, "edu_server.internal_api.connect", string(c.InternalAPI.Connect))
}