Basic offload configuration

This commit is contained in:
Rory&
2026-01-30 21:22:32 +01:00
parent a18549d51a
commit 1d5e31bdd5
3 changed files with 28 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ import {
GuildConfiguration,
LimitsConfiguration,
LoginConfiguration,
OffloadConfiguration,
PasswordResetConfiguration,
RabbitMQConfiguration,
RegionConfiguration,
@@ -57,4 +58,5 @@ export class ConfigValue {
email: EmailConfiguration = new EmailConfiguration();
passwordReset: PasswordResetConfiguration = new PasswordResetConfiguration();
user: UserConfiguration = new UserConfiguration();
offload: OffloadConfiguration = new OffloadConfiguration();
}

View File

@@ -0,0 +1,25 @@
/*
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
Copyright (C) 2026 Spacebar and Spacebar Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export class OffloadConfiguration {
gateway: GatewayOffloadConfiguration = new GatewayOffloadConfiguration();
}
export class GatewayOffloadConfiguration {
op14BaseUrl: string | null = null;
}

View File

@@ -26,6 +26,7 @@ export * from "./GeneralConfiguration";
export * from "./GifConfiguration";
export * from "./GuildConfiguration";
export * from "./LimitConfigurations";
export * from "./OffloadConfiguration";
export * from "./LoginConfiguration";
export * from "./PasswordResetConfiguration";
export * from "./RabbitMQConfiguration";