Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Jarvis URL and Token Environment Variables #2188

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading