mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 05:36:06 +00:00
Add encryption config
This commit is contained in:
parent
5c000b2fee
commit
7d7c733152
@ -1,16 +1,22 @@
|
|||||||
# Where the homeserver is located (client-server URL). This should point at
|
# Where the homeserver is located (client-server URL). This should point at
|
||||||
# pantalaimon if you're using that.
|
# Pantalaimon if you're using that.
|
||||||
homeserverUrl: "https://matrix.org"
|
homeserverUrl: "https://matrix.org"
|
||||||
|
|
||||||
|
|
||||||
# Where the homeserver is located (client-server URL). NOT panalaimon.
|
# Where the homeserver is located (client-server URL). NOT Pantalaimon.
|
||||||
rawHomeserverUrl: "https://matrix.org"
|
rawHomeserverUrl: "https://matrix.org"
|
||||||
|
|
||||||
|
|
||||||
# The access token for the bot to use. Do not populate if using Pantalaimon.
|
# The access token for the bot to use. Do not populate if using Pantalaimon.
|
||||||
accessToken: "YOUR_TOKEN_HERE"
|
accessToken: "YOUR_TOKEN_HERE"
|
||||||
|
|
||||||
# Pantalaimon options (https://github.com/matrix-org/pantalaimon)
|
# Enable support for handling encrypted rooms. This cannot be enabled if
|
||||||
|
# Pantalaimon is enabled.
|
||||||
|
encryption:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Pantalaimon options (https://github.com/matrix-org/pantalaimon). This cannot be
|
||||||
|
# enabled if encryption is enabled.
|
||||||
pantalaimon:
|
pantalaimon:
|
||||||
# If true, accessToken above is ignored and the username/password below will be
|
# If true, accessToken above is ignored and the username/password below will be
|
||||||
# used instead. The access token of the bot will be stored in the dataPath.
|
# used instead. The access token of the bot will be stored in the dataPath.
|
||||||
|
@ -34,6 +34,9 @@ interface IConfig {
|
|||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
};
|
};
|
||||||
|
encryption: {
|
||||||
|
enabled: boolean;
|
||||||
|
};
|
||||||
dataPath: string;
|
dataPath: string;
|
||||||
acceptInvitesFromGroup: string;
|
acceptInvitesFromGroup: string;
|
||||||
autojoinOnlyIfManager: boolean;
|
autojoinOnlyIfManager: boolean;
|
||||||
@ -96,6 +99,9 @@ const defaultConfig: IConfig = {
|
|||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
},
|
},
|
||||||
|
encryption: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
dataPath: "/data/storage",
|
dataPath: "/data/storage",
|
||||||
acceptInvitesFromGroup: '+example:example.org',
|
acceptInvitesFromGroup: '+example:example.org',
|
||||||
autojoinOnlyIfManager: false,
|
autojoinOnlyIfManager: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user