From fd1bf3801b8b72894303c0fbccb40b3058a614ca Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 8 Sep 2025 22:33:21 -0400 Subject: [PATCH] also allow data dir for registration.yaml --- src/matrix/read-registration.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/matrix/read-registration.js b/src/matrix/read-registration.js index 3e7e358..bb93c5c 100644 --- a/src/matrix/read-registration.js +++ b/src/matrix/read-registration.js @@ -5,7 +5,8 @@ const crypto = require("crypto") const assert = require("assert").strict const path = require("path") -const registrationFilePath = path.join(process.cwd(), "registration.yaml") +const dataDir = process.env.OOYE_DATA_DIR || process.cwd() +const registrationFilePath = path.join(dataDir, "registration.yaml") /** @param {import("../types").AppServiceRegistrationConfig} reg */ function checkRegistration(reg) { @@ -57,7 +58,7 @@ function getTemplateRegistration(serverName) { max_file_size: 5000000, content_length_workaround: false, include_user_id_in_mxid: false, - invite: [], + invite: [] } } }