वेब (Gateway)
Gateway, Gateway WebSocket के समान पोर्ट से एक छोटा ब्राउज़र कंट्रोल UI (Vite + Lit) परोसता है:- डिफ़ॉल्ट:
http://<host>:18789/ - optional prefix: set
gateway.controlUi.basePath(e.g./openclaw)
वेबहुक्स
Whenhooks.enabled=true, the Gateway also exposes a small webhook endpoint on the same HTTP server.
See Gateway configuration → hooks for auth + payloads.
कॉन्फ़िग (डिफ़ॉल्ट-ऑन)
The Control UI is enabled by default when assets are present (dist/control-ui).
You can control it via config:
Tailscale एक्सेस
Integrated Serve (अनुशंसित)
Gateway को loopback पर रखें और Tailscale Serve से इसे प्रॉक्सी करें:https://<magicdns>/(या आपका कॉन्फ़िगर किया हुआgateway.controlUi.basePath)
Tailnet बाइंड + टोकन
http://<tailscale-ip>:18789/(या आपका कॉन्फ़िगर किया हुआgateway.controlUi.basePath)
सार्वजनिक इंटरनेट (Funnel)
सुरक्षा नोट्स
- Gateway प्रमाणीकरण डिफ़ॉल्ट रूप से आवश्यक है (टोकन/पासवर्ड या Tailscale पहचान हेडर्स)।
- नॉन-loopback बाइंड्स के लिए अभी भी आवश्यक है एक साझा टोकन/पासवर्ड (
gateway.authया env)। - विज़ार्ड डिफ़ॉल्ट रूप से एक Gateway टोकन जनरेट करता है (loopback पर भी)।
- UI
connect.params.auth.tokenयाconnect.params.auth.passwordभेजता है। - कंट्रोल UI एंटी-क्लिकजैकिंग हेडर्स भेजता है और केवल same-origin ब्राउज़र
वेब-सॉकेट कनेक्शनों को स्वीकार करता है, जब तक कि
gateway.controlUi.allowedOriginsसेट न हो। - With Serve, Tailscale identity headers can satisfy auth when
gateway.auth.allowTailscaleistrue(no token/password required). Setgateway.auth.allowTailscale: falseto require explicit credentials. See Tailscale and Security. gateway.tailscale.mode: "funnel"के लिएgateway.auth.mode: "password"(साझा पासवर्ड) आवश्यक है।
UI का निर्माण
- गेटवे
dist/control-uiसे स्थिर फ़ाइलें परोसता है। 2. इन्हें इस तरह बिल्ड करें: