Add encryption config

This commit is contained in:
Half-Shot 2022-01-14 14:25:44 +00:00
parent 5c000b2fee
commit 7d7c733152
2 changed files with 15 additions and 3 deletions

View File

@ -1,16 +1,22 @@
# 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"
# Where the homeserver is located (client-server URL). NOT panalaimon.
# Where the homeserver is located (client-server URL). NOT Pantalaimon.
rawHomeserverUrl: "https://matrix.org"
# The access token for the bot to use. Do not populate if using Pantalaimon.
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:
# 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.

View File

@ -34,6 +34,9 @@ interface IConfig {
username: string;
password: string;
};
encryption: {
enabled: boolean;
};
dataPath: string;
acceptInvitesFromGroup: string;
autojoinOnlyIfManager: boolean;
@ -96,6 +99,9 @@ const defaultConfig: IConfig = {
username: "",
password: "",
},
encryption: {
enabled: false,
},
dataPath: "/data/storage",
acceptInvitesFromGroup: '+example:example.org',
autojoinOnlyIfManager: false,