From 80c74ba321ff36e8b0ed8fb115a8ddefc0e4afb3 Mon Sep 17 00:00:00 2001 From: Ali Raza <87068339+aliraza556@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:24:32 +0500 Subject: [PATCH] Add environment variables for Jarvis URL and Token (#2188) --- config/config.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/config.go b/config/config.go index 4bcc4760a..30284f021 100644 --- a/config/config.go +++ b/config/config.go @@ -20,6 +20,8 @@ import ( var Host string var JwtKey string +var JarvisUrl string +var JarvisToken string var RelayUrl string var MemeUrl string var RelayAuthKey string @@ -48,6 +50,8 @@ var FfWebsocket bool = false func InitConfig() { Host = os.Getenv("LN_SERVER_BASE_URL") JwtKey = os.Getenv("LN_JWT_KEY") + JarvisUrl = os.Getenv("JARVIS_URL") + JarvisToken = os.Getenv("JARVIS_TOKEN") RelayUrl = os.Getenv("RELAY_URL") MemeUrl = os.Getenv("MEME_URL") RelayAuthKey = os.Getenv("RELAY_AUTH_KEY") @@ -123,6 +127,14 @@ func InitConfig() { if S3Url == "" { S3Url = "https://sphinx-tribes.s3.amazonaws.com" } + + if JarvisUrl == "" { + JarvisUrl = "" + } + + if JarvisToken == "" { + JarvisToken = "" + } } func StripSuperAdmins(adminStrings string) []string {