fix(config): apply env overrides at runtime and fix Docker compose defaults (#279)
- Call apply_env_overrides() after Config::load_or_init() in main.rs so environment variables (API_KEY, PROVIDER, ZEROCLAW_GATEWAY_PORT, etc.) are actually applied at runtime, not just in tests - Add ZEROCLAW_ALLOW_PUBLIC_BIND env var support for gateway bind policy - Fix docker-compose.yml: correct volume path (/zeroclaw-data not /data), add ZEROCLAW_ALLOW_PUBLIC_BIND=true for container networking, make host port configurable via HOST_PORT env var - Add docker-compose.override.yml to .gitignore for local dev overrides
This commit is contained in:
parent
ebdcee3a5d
commit
d5e8fc1652
4 changed files with 15 additions and 5 deletions
|
|
@ -327,7 +327,8 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
// All other commands need config loaded first
|
||||
let config = Config::load_or_init()?;
|
||||
let mut config = Config::load_or_init()?;
|
||||
config.apply_env_overrides();
|
||||
|
||||
match cli.command {
|
||||
Commands::Onboard { .. } => unreachable!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue