summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-26 07:08:04 +0200
committerGitHub <noreply@github.com>2021-07-26 07:08:04 +0200
commite0acff92c12ada264e8184badd7ae1c3db2482a6 (patch)
tree76101f8fdd687e28b9e1e017eac6358763004e02 /src
parent1.3.34 (diff)
parentBump version to 1.3.35 (diff)
downloadserver-e0acff92c12ada264e8184badd7ae1c3db2482a6.tar.xz
Merge pull request #10 from luth31/master
Diffstat (limited to 'src')
-rw-r--r--src/util/Config.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index dfa942e7..6af351b3 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -24,6 +24,15 @@ export interface RateLimitOptions { timespan: number; } +export interface Region { + id: string, + name: string, + vip: boolean, + custom: boolean, + deprecated: boolean, + optimal: boolean, +} + export interface DefaultOptions { gateway: { endpoint: string | null; @@ -116,6 +125,10 @@ export interface DefaultOptions { minSymbols: number; }; }; + regions: { + default: string; + available: Region[]; + } } export const DefaultOptions: DefaultOptions = { @@ -207,6 +220,12 @@ export const DefaultOptions: DefaultOptions = { minSymbols: 0, }, }, + regions: { + default: "fosscord", + available: [ + { id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false }, + ] + }, }; export const ConfigSchema = new Schema({}, { strict: false });