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

This commit is contained in:
Claude Code
2026-07-17 21:11:59 -07:00
parent a9f654c993
commit bb37d8c384
32 changed files with 518 additions and 645 deletions

View File

@@ -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
}