summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-15 16:15:52 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-15 16:15:52 -0500
commit67d85a9fc5993461afd741b361d9e820a6f0e735 (patch)
tree7fe44f21315eb218aecb15b0ec63f48691927d56 /src/util/Config.ts
parentMerge pull request #137 from 9qz/master (diff)
downloadserver-67d85a9fc5993461afd741b361d9e820a6f0e735.tar.xz
Config: Be able to configure the target_url
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index f1f0f458..e52cd2f7 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -21,6 +21,9 @@ export interface RateLimitOptions { } export interface DefaultOptions { + server: { + root_url: string; + }; general: { instance_id: string; }; @@ -108,6 +111,9 @@ export interface DefaultOptions { } export const DefaultOptions: DefaultOptions = { + server: { + root_url: "localhost" // we are localhost unless the oposite is specified + }, general: { instance_id: Snowflake.generate(), },