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 {