Skip to content

Commit

Permalink
Add environment variables for Jarvis URL and Token (stakwork#2188)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 authored Dec 16, 2024
1 parent c4eb948 commit 80c74ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 80c74ba

Please sign in to comment.