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: {
|
abuseReporting: {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
}
|
}
|
||||||
ruleServer: {
|
ruleServer?: {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ export class WebAPIs {
|
|||||||
// Configure ruleServer API.
|
// Configure ruleServer API.
|
||||||
// FIXME: Doesn't this need some kind of access control?
|
// FIXME: Doesn't this need some kind of access control?
|
||||||
// See https://github.com/matrix-org/mjolnir/issues/139#issuecomment-1012221479.
|
// 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`;
|
const updatesUrl = `${API_PREFIX}/ruleserver/updates`;
|
||||||
LogService.info("WebAPIs", `Configuring ${updatesUrl}...`);
|
LogService.info("WebAPIs", `Configuring ${updatesUrl}...`);
|
||||||
if (!this.ruleServer) {
|
if (!this.ruleServer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user