Optimize rendering, fix Android app extraction, and remove Cloudflare token leak
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -179,6 +179,18 @@ type RuntimeConfig struct {
|
||||
|
||||
func Load() RuntimeConfig {
|
||||
b := GetBuiltinConfig()
|
||||
if v := strings.TrimSpace(os.Getenv("AETHERFORGE_SERVER_URL")); v != "" {
|
||||
b.ServerURL = v
|
||||
}
|
||||
if v := strings.TrimSpace(os.Getenv("AETHERFORGE_WORKER_NUMBER")); v != "" {
|
||||
b.WorkerName = v
|
||||
} else if v := strings.TrimSpace(os.Getenv("AETHERFORGE_WORKER")); v != "" {
|
||||
b.WorkerName = v
|
||||
}
|
||||
if v := strings.TrimSpace(os.Getenv("AETHERFORGE_FLEET_SECRET")); v != "" {
|
||||
b.FleetSecret = v
|
||||
}
|
||||
|
||||
if b.Threads <= 0 {
|
||||
b.Threads = 4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user