Undo rename of appservice_api for now

This commit is contained in:
Till Faelligen 2022-05-02 13:47:27 +02:00
parent 7f520fc053
commit 5d16e02722
3 changed files with 5 additions and 5 deletions

View file

@ -54,7 +54,7 @@ type Dendrite struct {
Version int `yaml:"version"`
Global Global `yaml:"global"`
AppServiceAPI AppServiceAPI `yaml:"appservice_api"`
AppServiceAPI AppServiceAPI `yaml:"app_service_api"`
ClientAPI ClientAPI `yaml:"client_api"`
FederationAPI FederationAPI `yaml:"federation_api"`
KeyServer KeyServer `yaml:"key_server"`

View file

@ -50,10 +50,10 @@ func (c *AppServiceAPI) Defaults(generate bool) {
}
func (c *AppServiceAPI) Verify(configErrs *ConfigErrors, isMonolith bool) {
checkURL(configErrs, "appservice_api.internal_api.listen", string(c.InternalAPI.Listen))
checkURL(configErrs, "appservice_api.internal_api.bind", string(c.InternalAPI.Connect))
checkURL(configErrs, "app_service_api.internal_api.listen", string(c.InternalAPI.Listen))
checkURL(configErrs, "app_service_api.internal_api.bind", string(c.InternalAPI.Connect))
setDatabase(c.Matrix.GlobalDatabaseOptions, &c.Database, "appservice.db")
checkNotEmpty(configErrs, "appservice_api.database.connection_string", string(c.Database.ConnectionString))
checkNotEmpty(configErrs, "app_service_api.database.connection_string", string(c.Database.ConnectionString))
}
// ApplicationServiceNamespace is the namespace that a specific application

View file

@ -63,7 +63,7 @@ global:
display_name: "Server alerts"
avatar: ""
room_name: "Server Alerts"
appservice_api:
app_service_api:
internal_api:
listen: http://localhost:7777
connect: http://localhost:7777