Add Mini App config to Unraid gateway template
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
c04d952b1b
commit
ce74ec34cb
@@ -35,6 +35,9 @@
|
||||
<Config Name="CLAW_GATEWAY_WORKER_NETWORK" Target="CLAW_GATEWAY_WORKER_NETWORK" Default="claw_gateway" Mode="" Description="Docker network name shared by the gateway and workers" Type="Variable" Display="advanced" Required="true" Mask="false">claw_gateway</Config>
|
||||
<Config Name="CLAW_GATEWAY_INHERITED_ENV" Target="CLAW_GATEWAY_INHERITED_ENV" Default="ANTHROPIC_AUTH_TOKEN,ANTHROPIC_API_KEY" Mode="" Description="Comma-separated env vars copied from gateway into worker containers" Type="Variable" Display="advanced" Required="false" Mask="false">ANTHROPIC_AUTH_TOKEN,ANTHROPIC_API_KEY</Config>
|
||||
<Config Name="CLAW_GATEWAY_WORKER_READY_TIMEOUT_SECS" Target="CLAW_GATEWAY_WORKER_READY_TIMEOUT_SECS" Default="15" Mode="" Description="Seconds to wait for a worker container to pass its health check" Type="Variable" Display="advanced" Required="false" Mask="false">15</Config>
|
||||
<Config Name="CLAW_GATEWAY_MINIAPP_BIND_ADDR" Target="CLAW_GATEWAY_MINIAPP_BIND_ADDR" Default="0.0.0.0:8081" Mode="" Description="Bind address for the Mini App HTTP server inside the gateway container" Type="Variable" Display="always" Required="false" Mask="false">0.0.0.0:8081</Config>
|
||||
<Config Name="CLAW_GATEWAY_MINIAPP_PUBLIC_BASE_URL" Target="CLAW_GATEWAY_MINIAPP_PUBLIC_BASE_URL" Default="" Mode="" Description="Public URL where the Mini App is reachable from Telegram (e.g. https://your-domain.com)" Type="Variable" Display="always" Required="false" Mask="false"></Config>
|
||||
<Config Name="Mini App Port" Target="8081" Default="8081" Mode="tcp" Description="Mini App HTTP port for artifact viewing" Type="Port" Display="always" Required="false" Mask="false">8081</Config>
|
||||
<Config Name="ANTHROPIC_AUTH_TOKEN" Target="ANTHROPIC_AUTH_TOKEN" Default="" Mode="" Description="Claude subscription OAuth token (sk-ant-oat...) inherited by worker containers" Type="Variable" Display="always" Required="false" Mask="true"></Config>
|
||||
<Config Name="ANTHROPIC_API_KEY" Target="ANTHROPIC_API_KEY" Default="" Mode="" Description="Anthropic API key inherited by worker containers for direct API access" Type="Variable" Display="always" Required="false" Mask="true"></Config>
|
||||
<TailscaleStateDir></TailscaleStateDir>
|
||||
|
||||
@@ -112,6 +112,12 @@ impl UnraidTemplateManager {
|
||||
"CLAW_GATEWAY_WORKER_READY_TIMEOUT_SECS",
|
||||
&config.worker_ready_timeout_secs.to_string(),
|
||||
)?;
|
||||
if let Some(ref addr) = config.miniapp_bind_addr {
|
||||
replace_config_value(&mut xml, "CLAW_GATEWAY_MINIAPP_BIND_ADDR", addr)?;
|
||||
}
|
||||
if let Some(ref url) = config.miniapp_public_base_url {
|
||||
replace_config_value(&mut xml, "CLAW_GATEWAY_MINIAPP_PUBLIC_BASE_URL", url)?;
|
||||
}
|
||||
replace_config_value(
|
||||
&mut xml,
|
||||
"ANTHROPIC_AUTH_TOKEN",
|
||||
|
||||
Reference in New Issue
Block a user