feat: Add gateway environment variables support
- Add 'gateway_env_vars' configuration option to addon config - Parse semicolon-separated KEY=VALUE pairs from add-on options - Export environment variables to gateway process at startup - Store parsed env vars in openclaw.json (gateway.env) Allows users to pass custom environment variables to the gateway via Home Assistant add-on configuration, e.g.: gateway_env_vars: 'SERVICE_API_KEY=123;SERVICE2_API=1231' These variables are exported to the gateway process and can be used for API authentication, feature flags, or other configuration needs.
This commit is contained in:
@@ -88,6 +88,11 @@ options:
|
||||
# (can affect Telegram API polling in some HAOS/VM setups).
|
||||
force_ipv4_dns: false
|
||||
|
||||
# Environment variables to pass to the gateway (semicolon-separated key=value pairs)
|
||||
# Example: "SERVICE_API=123;SERVICE2_API=1231"
|
||||
# These will be exported as environment variables when running the gateway
|
||||
gateway_env_vars: ""
|
||||
|
||||
|
||||
schema:
|
||||
timezone: str
|
||||
@@ -109,3 +114,4 @@ schema:
|
||||
enable_openai_api: bool?
|
||||
allow_insecure_auth: bool?
|
||||
force_ipv4_dns: bool?
|
||||
gateway_env_vars: str?
|
||||
|
||||
Reference in New Issue
Block a user