api: override config with environment variables