mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-15 21:59:53 +00:00
Refine ZTD Branch by removing leftover config values.
This commit is contained in:
@@ -8,9 +8,9 @@ Add managed management/admin room support to bot mode / appservice mode.
|
||||
|
||||
- Add new config options for zero touch provisioning of managed rooms:
|
||||
|
||||
\- managedManagementRoom and initialManager for bot mode
|
||||
\- initialManager for bot mode
|
||||
|
||||
\- managedAdminRoom and initialManager for appservice mode
|
||||
\- initialManager for appservice mode
|
||||
|
||||
\- If managed modes are enabled while unmanaged rooms are defined the bot will
|
||||
crash.
|
||||
|
||||
@@ -13,9 +13,6 @@ db:
|
||||
# See docs/access_control.md
|
||||
adminRoom: "#draupnir-admin:localhost:9999"
|
||||
|
||||
# Enable automatic admin-room recovery/creation on first boot.
|
||||
managedAdminRoom: false
|
||||
|
||||
# The initial manager to invite if the admin room has to be created.
|
||||
# initialManager: "@admin:example.org"
|
||||
|
||||
|
||||
@@ -8,10 +8,6 @@ db:
|
||||
|
||||
adminRoom: "#draupnir-admin:localhost:9999"
|
||||
|
||||
managedAdminRoom: false
|
||||
|
||||
# initialManager: "@admin:example.org"
|
||||
|
||||
# The directory the bot should store various bits of information in
|
||||
dataPath: "./test/harness/mjolnir-data/"
|
||||
|
||||
|
||||
@@ -82,9 +82,6 @@ export const AppserviceConfig = Type.Object({
|
||||
},
|
||||
{ description: "Details for the database backend" }
|
||||
),
|
||||
managedAdminRoom: Type.Boolean({
|
||||
default: false,
|
||||
}),
|
||||
initialManager: Type.Optional(StringUserIDSchema),
|
||||
adminRoom: Type.Optional(
|
||||
Type.String({
|
||||
|
||||
@@ -17,7 +17,6 @@ describe("Managed room bootstrap startup integration", function (this: Mocha.Sui
|
||||
const testConfigRecord = {
|
||||
...(config as unknown as Record<string, unknown>),
|
||||
};
|
||||
testConfigRecord.managedAdminRoom = true;
|
||||
testConfigRecord.adminRoom = undefined;
|
||||
testConfigRecord.initialManager =
|
||||
(await initialManager.getUserId()) as StringUserID;
|
||||
|
||||
Reference in New Issue
Block a user