summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-30 21:22:32 +0100
committerRory& <root@rory.gay>2026-01-30 21:29:01 +0100
commit1d5e31bdd5e71da3e12567b60aa86d81bb1c629a (patch)
tree0a901d164ae9acdc6fc2676c426608226c5c8cff /src/util
parentMerge pull request #1475 from CyberL1/fix/no-default-role-in-profiles (diff)
downloadserver-ts-1d5e31bdd5e71da3e12567b60aa86d81bb1c629a.tar.xz
Basic offload configuration
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config/Config.ts2
-rw-r--r--src/util/config/types/OffloadConfiguration.ts25
-rw-r--r--src/util/config/types/index.ts1
3 files changed, 28 insertions, 0 deletions
diff --git a/src/util/config/Config.ts b/src/util/config/Config.ts

index 6ada8170..05a72f6f 100644 --- a/src/util/config/Config.ts +++ b/src/util/config/Config.ts
@@ -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(); } diff --git a/src/util/config/types/OffloadConfiguration.ts b/src/util/config/types/OffloadConfiguration.ts new file mode 100644
index 00000000..a84e8db8 --- /dev/null +++ b/src/util/config/types/OffloadConfiguration.ts
@@ -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; +} diff --git a/src/util/config/types/index.ts b/src/util/config/types/index.ts
index 9f6ac23c..3b18cf48 100644 --- a/src/util/config/types/index.ts +++ b/src/util/config/types/index.ts
@@ -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";