mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
fix(oclaw-bridge): share alarm WSS auth with analyze token
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1f1b42e8bf
commit
99e7b1557f
5 changed files with 4 additions and 6 deletions
|
|
@ -22,7 +22,6 @@ class Settings(BaseSettings):
|
|||
oclaw_health_timeout_sec: float = 8.0
|
||||
oclaw_alarm_ws_enabled: bool = False
|
||||
oclaw_alarm_ws_url: str = "ws://127.0.0.1:8787/ws/netx-bridge"
|
||||
oclaw_alarm_ws_token: str = ""
|
||||
# UME RESTCONF integration
|
||||
ume_base_url: str = ""
|
||||
ume_username: str = ""
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ def _utc_now_iso() -> str:
|
|||
|
||||
|
||||
def _bridge_token() -> str:
|
||||
return str(getattr(settings, "oclaw_alarm_ws_token", "") or "").strip()
|
||||
return str(getattr(settings, "oclaw_analyze_token", "") or "").strip()
|
||||
|
||||
|
||||
def _bridge_url() -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue