Serve Avibe’s Web UI behind your own reverse proxy on a custom HTTPS domain.
Reverse proxy & custom domains
Avibe’s Web UI listens on 127.0.0.1:5123. The simplest way to reach it from elsewhere is the avibe.bot tunnel. To front it yourself with your own reverse proxy on a custom domain — for example nginx on https://avibe.example.com — declare your proxy and its public domain as trusted using the two settings below.
Configure
Set both environment variables where the vibe service runs (shell profile, service-manager unit, or container env), then restart Avibe:
# The address Avibe sees your proxy connect FROM — the direct peer, not the browser.# Same-machine nginx → 127.0.0.1. Another host/container → its IP or CIDR. Comma-separate multiple.VIBE_UI_TRUSTED_PROXY_IPS=127.0.0.1# The full public origin your proxy serves — with scheme, no path. Comma-separate multiple.VIBE_UI_TRUSTED_PUBLIC_ORIGINS=https://avibe.example.com
Both are required together — with only the proxy IP set, the custom domain still won’t load. (You can also set the origins in the config file as a list under ui.trusted_public_origins.)Then have nginx forward the browser’s host and scheme:
server { listen 443 ssl; server_name avibe.example.com; # ssl_certificate / ssl_certificate_key ... location / { proxy_pass http://127.0.0.1:5123; # your Avibe Web UI address proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; # Live updates use WebSockets proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }}
On a non-standard external port, also forward proxy_set_header X-Forwarded-Port $server_port; and include that port in the declared origin.
Authentication is your responsibility
This mode treats your proxy’s requests as local and does not add an Avibe sign-in. Put your own authentication in front of the proxy (nginx basic auth, Authelia, an SSO proxy, …), or keep it on a private network (VPN / LAN only). Don’t expose the declared domain to the open internet without your own auth.
Using it with the avibe.bot tunnel
If you also run the tunnel, your proxy must reach Avibe over a non-loopback address. A loopback (127.0.0.1) proxy is refused while the tunnel is enabled, so that a request coming through the tunnel can’t impersonate your custom domain.Bind Avibe to a LAN or bridge address, point nginx there, and set VIBE_UI_TRUSTED_PROXY_IPS to that address (not 127.0.0.1). Or run just one of the two.
Troubleshooting
Load the Web UI on your custom domain. If the page returns 503, or a state-changing action returns 403:
confirm both variables are set, and VIBE_UI_TRUSTED_PUBLIC_ORIGINS matches the browser’s origin exactly — scheme included, no trailing path, and any non-default port;
confirm the proxy’s real source IP is the one in VIBE_UI_TRUSTED_PROXY_IPS;
confirm nginx forwards Host, X-Forwarded-Host, and X-Forwarded-Proto, and that you restarted Avibe;
if you also run the tunnel and your proxy is on loopback, that combination is refused by design — see above.
The service log flags entries that were ignored or didn’t take effect.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AVIBE Docs","colors":{"primary":"#111827"},"logo":{"light":"https://mintcdn.com/cyhzhusunin/cfb0CpFMCwCK0CKq/assets/logo.png?fit=max\u0026auto=format\u0026n=cfb0CpFMCwCK0CKq\u0026q=85\u0026s=edeb60a9367b7d0c13e5446a8ee9e1fe","dark":"https://mintcdn.com/cyhzhusunin/cfb0CpFMCwCK0CKq/assets/logo.png?fit=max\u0026auto=format\u0026n=cfb0CpFMCwCK0CKq\u0026q=85\u0026s=edeb60a9367b7d0c13e5446a8ee9e1fe"},"favicon":"https://mintcdn.com/cyhzhusunin/cfb0CpFMCwCK0CKq/assets/logo.png?fit=max\u0026auto=format\u0026n=cfb0CpFMCwCK0CKq\u0026q=85\u0026s=edeb60a9367b7d0c13e5446a8ee9e1fe","styling":{"latex":true},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cyhzhusunin","hasAudioNarration":false,"actualSubdomain":"cyhzhusunin","customDomains":["docs.avibe.bot"],"gitSource":{"type":"github","owner":"avibe-bot","repo":"avibe-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afed65a8b67b28b9f2892a5","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"en","tag":"Concepts","count":15},{"language":"zh","tag":"概念","count":15},{"language":"en","tag":"Agents","count":6},{"language":"zh","tag":"Agent","count":6},{"language":"en","tag":"Start here","count":5},{"language":"zh","tag":"开始","count":5},{"language":"en","tag":"Platforms","count":4},{"language":"zh","tag":"平台","count":4},{"language":"en","tag":"Reference","count":3},{"language":"zh","tag":"参考","count":3},{"language":"en","tag":"avibe.bot Cloud","count":2},{"language":"zh","tag":"avibe.bot Cloud","count":2},{"language":"en","tag":"Compare","count":1},{"language":"en","tag":"Self-hosting","count":1},{"language":"zh","tag":"对比","count":1},{"language":"zh","tag":"自建部署","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"self-hosting/reverse-proxy","slug":"/self-hosting/reverse-proxy","pageMetadata":{"title":"Reverse proxy \u0026 custom domains","description":"Serve Avibe's Web UI behind your own reverse proxy on a custom HTTPS domain.","href":"/self-hosting/reverse-proxy"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Serve Avibe’s Web UI behind your own reverse proxy on a custom HTTPS domain.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`reverse-proxy-\u0026-custom-domains`,children:`Reverse proxy \u0026 custom domains`}),`\n`,_jsxs(_components.p,{children:[`Avibe’s Web UI listens on `,_jsx(_components.code,{children:`127.0.0.1:5123`}),`. The simplest way to reach it from elsewhere is the `,_jsx(_components.a,{href:`/concepts/remote-ui`,children:`avibe.bot tunnel`}),`. To front it yourself with your own reverse proxy on a custom domain — for example `,_jsxs(_components.strong,{children:[`nginx on `,_jsx(_components.code,{children:`https://avibe.example.com`})]}),` — declare your proxy and its public domain as trusted using the two settings below.`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure`,children:`Configure`}),`\n`,_jsxs(_components.p,{children:[`Set both environment variables where the `,_jsx(_components.code,{children:`vibe`}),` service runs (shell profile, service-manager unit, or container env), then restart Avibe:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The address Avibe sees your proxy connect FROM — the direct peer, not the browser.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Same-machine nginx → 127.0.0.1. Another host/container → its IP or CIDR. Comma-separate multiple.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`VIBE_UI_TRUSTED_PROXY_IPS=127.0.0.1`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The full public origin your proxy serves — with scheme, no path. Comma-separate multiple.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`VIBE_UI_TRUSTED_PUBLIC_ORIGINS=https://avibe.example.com`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Both are required together — with only the proxy IP set, the custom domain still won’t load. (You can also set the origins in the config file as a list under `,_jsx(_components.code,{children:`ui.trusted_public_origins`}),`.)`]}),`\n`,_jsx(_components.p,{children:`Then have nginx forward the browser’s host and scheme:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`nginx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`nginx`,children:_jsxs(_components.code,{language:`nginx`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`server`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` listen `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`443`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ssl;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` server_name `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`avibe.example.com;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # ssl_certificate / ssl_certificate_key ...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` location`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:` / `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_pass `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`http://127.0.0.1:5123; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# your Avibe Web UI address`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_set_header `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Host $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`host`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_set_header `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`X-Forwarded-Host $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`host`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_set_header `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`X-Forwarded-Proto $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scheme`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Live updates use WebSockets`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_http_version `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_set_header `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Upgrade $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`http_upgrade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_set_header `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Connection `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"upgrade\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`On a non-standard external port, also forward `,_jsx(_components.code,{children:`proxy_set_header X-Forwarded-Port $server_port;`}),` and include that port in the declared origin.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-is-your-responsibility`,children:`Authentication is your responsibility`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`This mode treats your proxy’s requests as local and does `,_jsx(_components.strong,{children:`not`}),` add an Avibe sign-in. Put your own authentication in front of the proxy (nginx basic auth, Authelia, an SSO proxy, …), or keep it on a private network (VPN / LAN only). Don’t expose the declared domain to the open internet without your own auth.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`using-it-with-the-avibe-bot-tunnel`,children:`Using it with the avibe.bot tunnel`}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`If you also run the tunnel, your proxy must reach Avibe over a `,_jsx(_components.strong,{children:`non-loopback`}),` address. A loopback (`,_jsx(_components.code,{children:`127.0.0.1`}),`) proxy is refused while the tunnel is enabled, so that a request coming through the tunnel can’t impersonate your custom domain.`]}),_jsxs(_components.p,{children:[`Bind Avibe to a LAN or bridge address, point nginx there, and set `,_jsx(_components.code,{children:`VIBE_UI_TRUSTED_PROXY_IPS`}),` to that address (not `,_jsx(_components.code,{children:`127.0.0.1`}),`). Or run just one of the two.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(_components.p,{children:[`Load the Web UI on your custom domain. If the page returns `,_jsx(_components.code,{children:`503`}),`, or a state-changing action returns `,_jsx(_components.code,{children:`403`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`confirm `,_jsx(_components.strong,{children:`both`}),` variables are set, and `,_jsx(_components.code,{children:`VIBE_UI_TRUSTED_PUBLIC_ORIGINS`}),` matches the browser’s origin exactly — scheme included, no trailing path, and any non-default port;`]}),`\n`,_jsxs(_components.li,{children:[`confirm the proxy’s real source IP is the one in `,_jsx(_components.code,{children:`VIBE_UI_TRUSTED_PROXY_IPS`}),`;`]}),`\n`,_jsxs(_components.li,{children:[`confirm nginx forwards `,_jsx(_components.code,{children:`Host`}),`, `,_jsx(_components.code,{children:`X-Forwarded-Host`}),`, and `,_jsx(_components.code,{children:`X-Forwarded-Proto`}),`, and that you restarted Avibe;`]}),`\n`,_jsx(_components.li,{children:`if you also run the tunnel and your proxy is on loopback, that combination is refused by design — see above.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`The service log flags entries that were ignored or didn’t take effect.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Reverse proxy \u0026 custom domains","description":"Serve Avibe's Web UI behind your own reverse proxy on a custom HTTPS domain.","href":"/self-hosting/reverse-proxy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Reverse proxy \u0026 custom domains","slug":"reverse-proxy-\u0026-custom-domains","depth":1,"children":[]},{"title":"Configure","slug":"configure","depth":2,"children":[]},{"title":"Authentication is your responsibility","slug":"authentication-is-your-responsibility","depth":2,"children":[]},{"title":"Using it with the avibe.bot tunnel","slug":"using-it-with-the-avibe-bot-tunnel","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cyhzhusunin","siteName":"AVIBE Docs","title":"Reverse proxy \u0026 custom domains - AVIBE Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/self-hosting/reverse-proxy","matchLevel":0},"zh":{"href":"/zh/self-hosting/reverse-proxy","matchLevel":1}}},"lastModified":"2026-07-06T03:03:23.135Z","originalFileLocation":"self-hosting/reverse-proxy.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Serve Avibe\u0026#x27;s Web UI behind your own reverse proxy on a custom HTTPS domain.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AVIBE Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reverse proxy \u0026amp; custom domains - AVIBE Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Serve Avibe\u0026#x27;s Web UI behind your own reverse proxy on a custom HTTPS domain.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AVIBE Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.avibe.bot/self-hosting/reverse-proxy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cyhzhusunin.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Reverse+proxy+%26+custom+domains\u0026amp;description=Serve+Avibe%27s+Web+UI+behind+your+own+reverse+proxy+on+a+custom+HTTPS+domain.\u0026amp;theme=bc69cabdbacd249d937a7f86\u0026amp;signature=ca51ed3c20927261704e7a84b6a706ebe99f6c804a6531aee1f3682fec896cf2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Reverse proxy \u0026amp; custom domains - AVIBE Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Serve Avibe\u0026#x27;s Web UI behind your own reverse proxy on a custom HTTPS domain.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cyhzhusunin.mintlify.site/_mintlify/api/og/v2?division=Self-hosting\u0026amp;title=Reverse+proxy+%26+custom+domains\u0026amp;description=Serve+Avibe%27s+Web+UI+behind+your+own+reverse+proxy+on+a+custom+HTTPS+domain.\u0026amp;theme=bc69cabdbacd249d937a7f86\u0026amp;signature=ca51ed3c20927261704e7a84b6a706ebe99f6c804a6531aee1f3682fec896cf2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cyhzhusunin/UZaLqqbv65x4Ykhv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AVIBE Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111827\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.avibe.bot/self-hosting/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/self-hosting/reverse-proxy.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.avibe.bot/self-hosting/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.avibe.bot/zh/self-hosting/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.avibe.bot/self-hosting/reverse-proxy\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.avibe.bot/#organization\",\"name\":\"AVIBE Docs\",\"url\":\"https://docs.avibe.bot\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cyhzhusunin/cfb0CpFMCwCK0CKq/assets/logo.png?fit=max\u0026auto=format\u0026n=cfb0CpFMCwCK0CKq\u0026q=85\u0026s=edeb60a9367b7d0c13e5446a8ee9e1fe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.avibe.bot#website\",\"name\":\"AVIBE Docs\",\"url\":\"https://docs.avibe.bot\",\"publisher\":{\"@id\":\"https://docs.avibe.bot/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.avibe.bot/self-hosting/reverse-proxy#webpage\",\"url\":\"https://docs.avibe.bot/self-hosting/reverse-proxy\",\"name\":\"Reverse proxy \u0026 custom domains\",\"description\":\"Serve Avibe's Web UI behind your own reverse proxy on a custom HTTPS domain.\",\"dateModified\":\"2026-07-06T03:03:23.135Z\",\"isPartOf\":{\"@id\":\"https://docs.avibe.bot#website\"},\"breadcrumb\":{\"@id\":\"https://docs.avibe.bot/self-hosting/reverse-proxy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.avibe.bot/self-hosting/reverse-proxy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AVIBE Docs\",\"item\":\"https://docs.avibe.bot\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reverse proxy \u0026 custom domains\",\"item\":\"https://docs.avibe.bot/self-hosting/reverse-proxy\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.avibe.bot/self-hosting/reverse-proxy#article\",\"headline\":\"Reverse proxy \u0026 custom domains\",\"name\":\"Reverse proxy \u0026 custom domains\",\"description\":\"Serve Avibe's Web UI behind your own reverse proxy on a custom HTTPS domain.\",\"url\":\"https://docs.avibe.bot/self-hosting/reverse-proxy\",\"mainEntityOfPage\":{\"@id\":\"https://docs.avibe.bot/self-hosting/reverse-proxy#webpage\"},\"dateModified\":\"2026-07-06T03:03:23.135Z\",\"publisher\":{\"@id\":\"https://docs.avibe.bot/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.avibe.bot#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AVIBE Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AVIBE Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/self-hosting/reverse-proxy.md","siteName":"AVIBE Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"groups":[{"group":"Start here","pages":[{"title":"Avibe Docs","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Install Avibe","href":"/get-started/install"},{"title":"Avibe on iPhone","href":"/get-started/iphone"},{"title":"Setup wizard","href":"/get-started/setup-wizard"}]},{"group":"avibe.bot Cloud","pages":[{"title":"Remote access","href":"/concepts/remote-ui"},{"title":"Model Service","description":"Understand the cloud models that power Avibe Voice input, and who chooses them.","href":"/concepts/model-service"}]},{"group":"Self-hosting","pages":[{"title":"Reverse proxy \u0026 custom domains","href":"/self-hosting/reverse-proxy"}]},{"group":"Platforms","pages":[{"title":"Slack","description":"Use Slack as a collaboration surface for the agents your Avibe runs locally.","href":"/platforms/slack"},{"title":"Discord","href":"/platforms/discord"},{"title":"Telegram","href":"/platforms/telegram"},{"title":"WeChat and Lark","href":"/platforms/wechat-lark"}]},{"group":"Agents","pages":[{"title":"Vibey","href":"/agents/vibey"},{"title":"How Vibey remembers","href":"/agents/vibey-memory"},{"title":"Vibey memory benchmark","href":"/agents/vibey-memory-benchmark"},{"title":"Claude Code","href":"/agents/claude-code"},{"title":"OpenCode","href":"/agents/opencode"},{"title":"Codex","href":"/agents/codex"}]},{"group":"Concepts","pages":[{"title":"What is Avibe","href":"/concepts/agent-os"},{"title":"The Workbench","href":"/concepts/workbench"},{"title":"Bots","href":"/concepts/bots"},{"title":"The Agent Harness","href":"/concepts/harness"},{"title":"Model Hub","href":"/concepts/model-hub"},{"title":"Vaults","href":"/concepts/vaults"},{"title":"Show Pages","href":"/concepts/show-pages"},{"title":"Annotating Show Pages","href":"/concepts/annotating-show-pages"},{"title":"Apps \u0026 the Dock","href":"/concepts/apps-dock"},{"title":"Skills","href":"/concepts/skills"},{"title":"MCP","href":"/concepts/mcp"},{"title":"Local-first architecture","href":"/concepts/local-first"},{"title":"Thread sessions","href":"/concepts/thread-sessions"},{"title":"Design Philosophy","href":"/concepts/philosophy"},{"title":"Vision","href":"/concepts/vision"}]},{"group":"Reference","pages":[{"title":"Commands","href":"/reference/commands"},{"title":"Install for AI agents","href":"/ai/install-for-ai"},{"title":"Common issues","href":"/troubleshoot/common-issues"}]},{"group":"Compare","pages":[{"title":"Avibe vs OpenClaw and Hermes","href":"/compare/openclaw"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/self-hosting/reverse-proxy"}]}]},"basePath":"","title":"Reverse proxy \u0026 custom domains - AVIBE Docs","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}