mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
Basic offload configuration
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
25
src/util/config/types/OffloadConfiguration.ts
Normal file
25
src/util/config/types/OffloadConfiguration.ts
Normal 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;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user