mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
do not require rule server config to be present.
This commit is contained in:
parent
767e1a5a7e
commit
74c54926e8
@ -76,7 +76,7 @@ interface IConfig {
|
||||
abuseReporting: {
|
||||
enabled: boolean;
|
||||
}
|
||||
ruleServer: {
|
||||
ruleServer?: {
|
||||
enabled: boolean;
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ export class WebAPIs {
|
||||
// Configure ruleServer API.
|
||||
// FIXME: Doesn't this need some kind of access control?
|
||||
// See https://github.com/matrix-org/mjolnir/issues/139#issuecomment-1012221479.
|
||||
if (config.web.ruleServer.enabled) {
|
||||
if (config.web.ruleServer?.enabled) {
|
||||
const updatesUrl = `${API_PREFIX}/ruleserver/updates`;
|
||||
LogService.info("WebAPIs", `Configuring ${updatesUrl}...`);
|
||||
if (!this.ruleServer) {
|
||||
|
Loading…
Reference in New Issue
Block a user