mirror of
https://github.com/aljazceru/wot-relay.git
synced 2025-12-18 14:54:19 +01:00
don't force env update
This commit is contained in:
8
main.go
8
main.go
@@ -188,6 +188,14 @@ func LoadConfig() Config {
|
|||||||
os.Setenv("ARCHIVAL_SYNC", "TRUE")
|
os.Setenv("ARCHIVAL_SYNC", "TRUE")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.Getenv("RELAY_ICON") == "" {
|
||||||
|
os.Setenv("RELAY_ICON", "https://pfp.nostr.build/56306a93a88d4c657d8a3dfa57b55a4ed65b709eee927b5dafaab4d5330db21f.png")
|
||||||
|
}
|
||||||
|
|
||||||
|
if os.Getenv("RELAY_CONTACT") == "" {
|
||||||
|
os.Setenv("RELAY_CONTACT", getEnv("RELAY_PUBKEY"))
|
||||||
|
}
|
||||||
|
|
||||||
minimumFollowers, _ := strconv.Atoi(os.Getenv("MINIMUM_FOLLOWERS"))
|
minimumFollowers, _ := strconv.Atoi(os.Getenv("MINIMUM_FOLLOWERS"))
|
||||||
|
|
||||||
config := Config{
|
config := Config{
|
||||||
|
|||||||
Reference in New Issue
Block a user