Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.
A self-hosted Veriqa speaks HTTP and expects TLS to end at a proxy in front of it. This page lists
what that proxy has to pass through. Trusting the proxy on the Veriqa side — the ForwardedHeaders
section — is covered in
self-hosted, step 6.
Give Veriqa a host name of its own
The simplest and recommended layout is a dedicated host name — auth.your-domain.com — that sends
every request to Veriqa. Nothing has to be listed, nothing collides with your application, and
a path added by a later release works without touching the proxy. That address is also the
issuer your applications validate tokens against: an instance has one issuer, so applications on
different domains — a staging site and a production one, for example — all point at the same
address rather than each proxying Veriqa under its own domain.If you mount Veriqa on your application’s host name instead, you have two options. Pass every
path of the table below: Veriqa then serves them from the root of the host name, so your application
cannot use /_content/ and /hubs/ on it. Or keep the root for your application and put the whole of Veriqa
under a path prefix.
Paths
Path prefix
Who calls it
What it is
/.well-known/
your application
Discovery document and signing keys
/connect/
browser and your application
The OIDC endpoints and the sign-in page with its actions
/auth/
browser
Pages outside the OIDC path: the confirmation page, the page that collects a missing phone number, email or profile field on the device that confirmed the sign-in, the pages of the Email channel that email links lead to, and the start and return addresses of sign-in with a provider account (/auth/web-provider/{channel}/)
/hubs/
browser, WebSocket
Live status of the sign-in page and of the page that collects missing details (SignalR)
/api/transaction/
browser and your application
Status polling when the WebSocket is not available; creating a confirmation transaction and reading its result
/_content/
browser
Static files of the sign-in page
/api/channels/
messaging platforms
Channel webhooks — must be reachable from the internet in Webhook mode
/r/
browser
Short links of the hop mode — only when it is on; the prefix is Veriqa:HopMode:HopPath
/api/link-handle/
your application
Exchange of a link handle for the identity of the signed-in user — only when a post-completion button carries {handle}
/health/live, /health/ready and /health/channels are for your own monitoring and need not be
published.
A list limited to /.well-known/, /connect/, /hubs/, /api/transaction/ and /_content/ is
enough for a plain sign-in and looks complete. It stops being enough the day you ask for a phone
number or an email, enable the Email channel, enable sign-in with a provider account such as
Google, or switch a bot to Webhook: those pages, the provider’s return address and the webhooks
live under /auth/ and /api/channels/.
WebSocket
The sign-in page learns through the /hubs/auth hub that the user has confirmed. The proxy must
let the connection upgrade — pass the Upgrade and Connection headers and use HTTP/1.1 towards
Veriqa — and must not close an idle connection before a sign-in can finish. When the upgrade does
not get through, the page falls back to polling /api/transaction/{id}/status: the sign-in still
completes, with a delay.
When Veriqa shares the host name with your application, keep the body of the location block and
repeat it for each prefix of the table instead of /:
location ~ ^/(\.well-known|connect|auth|hubs|api/transaction|api/channels|_content)/ { # the same proxy_* directives as above}# Only for the features that need them: hop short links (r/ is the default Veriqa:HopMode:HopPath),# and link handle exchange and collected claims deletion when your application calls them on this hostlocation ~ ^/(r/|api/link-handle/|api/collected-claims$) { # the same proxy_* directives as above}
The repository contains a complete configuration with TLS settings and an HTTP-to-HTTPS redirect:
samples/docker-compose/nginx.conf (samples).
Limit requests per client address
The core counts its limits per route, per user and per client, never per address (see
Preparing for production). The limit per address
is set on the proxy, and two routes need it first:
/connect/authorize: a request creates a sign-in transaction;
POST /auth/email/start: a request sends a sign-in email. A GET to the same address only shows
the Email form, so the limit counts only POST requests.
Add to the http context:
# Addresses that many of your users share, such as the NAT of an officegeo $veriqa_shared_address { default 0; # 203.0.113.10 1;}# Sign-in transactions: every request to /connect/authorizemap "$veriqa_shared_address:$uri" $veriqa_authorize_key { default ""; "~*^0:/connect/authorize/?$" $binary_remote_addr;}# Sign-in emails: only POST /auth/email/start; a GET shows the formmap "$veriqa_shared_address:$request_method:$uri" $veriqa_email_key { default ""; "~*^0:POST:/auth/email/start/?$" $binary_remote_addr;}limit_req_zone $veriqa_authorize_key zone=veriqa_authorize:10m rate=20r/m;limit_req_zone $veriqa_email_key zone=veriqa_email:10m rate=5r/m;
Only the two routes are counted. NGINX does not count a request with an empty key, and the
map blocks leave the key empty for every other request. The sign-in page actions under
/connect/authorize/callback, the form and the pages of email links are left to the core buckets.
The values are a starting point for one person or a household behind one address: up to 21
sign-ins at once, then one every 3 seconds; up to 6 emails at once, then one every 12 seconds.
A request beyond that gets 429, the code the core itself returns when a bucket is used up, so
one fail2ban rule covers both. Without limit_req_status, NGINX would answer 503.
Many users behind one address. An office often sends all its employees out through one NAT
address, and a limit per address counts them as one visitor. List such addresses in the geo
block with the value 1: the proxy does not limit them, and only the core buckets count them. To
limit them as well, give them a zone of their own with a higher rate.
A load balancer in front of NGINX.$binary_remote_addr is then the address of the balancer.
Restore the client address with the realip module (set_real_ip_from, real_ip_header).
Under a path prefix, add it to the paths in the map blocks:
/auth/veriqa/connect/authorize. NGINX checks the path the browser requested, whether it then
passes the prefix to Veriqa or trims it.
Under a path prefix
With a path prefix every address of Veriqa starts with it —
https://app.your-domain.com/auth/veriqa/connect/token — and the root paths of the host name stay
with your application. Set the prefix on the Veriqa host and repeat it in every public address you
configure:
Key
Value
Veriqa:PathBase
/auth/veriqa
Veriqa:OpenIddict:Server:Issuer
https://app.your-domain.com/auth/veriqa
Veriqa:Channels:Email:PublicBaseUrl, Veriqa:Channels:{channel}:WebProvider:PublicBaseUrl, WebhookBaseUrl of a channel in Webhook mode
the same address, with the prefix
Veriqa:PathBase starts with /, does not end with / and may have several segments. It is
written as plain text: no ?, #, %, \, whitespace, and no . or .. segment. Any other
value stops the host at startup; an empty one means the root. The prefix applies whichever
way the proxy forwards the path — use one of the two blocks:
# The path is passed as it is: Veriqa receives /auth/veriqa/connect/tokenlocation /auth/veriqa/ { proxy_pass http://127.0.0.1:8080; # the same proxy_* directives as above}# The prefix is trimmed: Veriqa receives /connect/tokenlocation /auth/veriqa/ { proxy_pass http://127.0.0.1:8080/; # the same proxy_* directives as above}
https://app.your-domain.com/auth/veriqa/.well-known/openid-configuration then returns the issuer
and every endpoint with the prefix. A client that reads the metadata per RFC 8414 asks for it at the
root of the host name, with the path of the issuer appended. Map that address:
This mapping is verified for a proxy that passes the path unchanged. With a proxy that trims the
prefix the target is the same address without /auth/veriqa; that variant has not been verified.What to keep in mind:
A prefix that a path of Veriqa itself starts with — /auth, /api, /connect, /hubs,
/_content, /health, or the path of hop links (/r by default, Veriqa:HopMode:HopPath) —
works only when the proxy passes the path unchanged. Behind a trimming proxy such a prefix returns
404. /auth/veriqa is not one of them.
Requests that reach an instance directly carry no prefix — a health probe asks
http://127.0.0.1:8080/health/live. Veriqa cannot tell such a request from one the proxy
trimmed and serves both, so blocking outside access to the instance root is the proxy’s job.
Several instances. The proxy has to keep a browser on one instance (session affinity,
ip_hash in NGINX): without it the hub of the sign-in page does not connect. The Email channel
has a limit of its own — the multi-instance caveat in
Channel setup, Email. Neither depends on the prefix.
Verified under a prefix: sign-in by Email in both modes with its inbound webhook, the messaging channel webhook (Webhook mode), the phone number request, confirming
an email address with a code or with a message the user sends during
claim enrichment, the tokens and userinfo, the form that collects
a missing profile field, and a confirmation transaction created by your server.
Veriqa:PathBase is a setting of the shipped host. When Veriqa is embedded in your ASP.NET Core
application, the prefix is the UsePathBase of that application, and discovery carries it.
Other proxies
Traefik, Caddy and IIS need the same three things: every path of the table, the X-Forwarded-Proto
and X-Forwarded-For headers, and the WebSocket upgrade. Traefik and Caddy pass the upgrade
without configuration; in IIS the WebSocket Protocol feature has to be installed. Under a path
prefix, only the prefix needs to be passed instead of the paths in the table — see
Under a path prefix.
Check
https://auth.your-domain.com/.well-known/openid-configuration returns https URLs on your host
name. http URLs or invalid_request mean the proxy is not trusted —
self-hosted, step 6.
On the sign-in page the browser’s network tab shows /hubs/auth answered with 101 Switching Protocols.
Request Header Or Cookie Too Large — raise large_client_header_buffers.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Veriqa Docs","description":"Cross-device sign-in and approval through trusted messaging apps — standard OpenID Connect for any stack.","colors":{"primary":"#e53837","light":"#ff5b5a","dark":"#c62a29"},"logo":{"light":"https://mintcdn.com/veriqa/qw6LDrivzjnIjrOq/logo/light.svg?fit=max\u0026auto=format\u0026n=qw6LDrivzjnIjrOq\u0026q=85\u0026s=9def38397d6be0d8f9207dfb5cd7b019","dark":"https://mintcdn.com/veriqa/qw6LDrivzjnIjrOq/logo/dark.svg?fit=max\u0026auto=format\u0026n=qw6LDrivzjnIjrOq\u0026q=85\u0026s=712ad308ac82f982b9c5c1211d5b90ea","href":"https://veriqa.app"},"favicon":"https://mintcdn.com/veriqa/xBhy2OnJr1Zv89lD/favicon.svg?fit=max\u0026auto=format\u0026n=xBhy2OnJr1Zv89lD\u0026q=85\u0026s=c92ea076d7372a48dcabe40f63923f6a","background":{"color":{"light":"#ffffff","dark":"#0d0e0f"}},"footer":{"socials":{"website":"https://veriqa.app"}},"contextual":{"options":["copy","view","claude","chatgpt","mcp","add-mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"ru","navbar":{"links":[{"href":"https://veriqa.app/source","label":"Репозиторий"}],"primary":{"type":"button","label":"Живое демо","href":"https://veriqa.app/demo"}},"href":"ru"},{"language":"en","default":true,"navbar":{"links":[{"href":"https://veriqa.app/source","label":"Repository"}],"primary":{"type":"button","label":"Live demo","href":"https://veriqa.app/demo?lang=en"}},"href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"veriqa","hasAudioNarration":false,"actualSubdomain":"veriqa","customDomains":["veriqa.app"],"gitSource":{"type":"gitlab","owner":"veriqa","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":86464061,"mountPath":"","label":"","_id":"6b10f34a9ffae5051c4187e8"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0689864d746179e790db26","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"ru","tag":"Примеры","count":26},{"language":"en","tag":"Guides","count":25},{"language":"en","tag":"Samples","count":25},{"language":"ru","tag":"Руководства","count":25},{"language":"en","tag":"Get started","count":18},{"language":"en","tag":"Ready-made recipes","count":18},{"language":"ru","tag":"Начало работы","count":18},{"language":"ru","tag":"Готовые рецепты","count":18},{"language":"en","tag":"Use cases","count":17},{"language":"ru","tag":"Сценарии использования","count":17},{"language":"en","tag":"Releases","count":13},{"language":"ru","tag":"Релизы","count":13},{"language":"en","tag":"Previous","count":12},{"language":"ru","tag":"Предыдущие","count":12},{"language":"en","tag":"Videos","count":11},{"language":"ru","tag":"Видео","count":11},{"language":"en","tag":"Messaging apps and channels","count":8},{"language":"en","tag":"Installation and configuration","count":8},{"language":"ru","tag":"Мессенджеры и каналы","count":8},{"language":"ru","tag":"Установка и настройка","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/reverse-proxy","slug":"/guides/reverse-proxy","pageMetadata":{"title":"Behind a reverse proxy","description":"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.","href":"/guides/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: \"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A self-hosted Veriqa speaks HTTP and expects TLS to end at a proxy in front of it. This page lists\nwhat that proxy has to pass through. Trusting the proxy on the Veriqa side — the `,_jsx(_components.code,{children:`ForwardedHeaders`}),`\nsection — is covered in\n`,_jsx(_components.a,{href:`/quickstart/self-hosted#6-put-it-behind-a-reverse-proxy`,children:`self-hosted, step 6`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`give-veriqa-a-host-name-of-its-own`,children:`Give Veriqa a host name of its own`}),`\n`,_jsxs(_components.p,{children:[`The simplest and recommended layout is a dedicated host name — `,_jsx(_components.code,{children:`auth.your-domain.com`}),` — that sends\nevery request to Veriqa. Nothing has to be listed, nothing collides with your application, and\na path added by a later release works without touching the proxy. That address is also the\n`,_jsx(_components.code,{children:`issuer`}),` your applications validate tokens against: an instance has one issuer, so applications on\ndifferent domains — a staging site and a production one, for example — all point at the same\naddress rather than each proxying Veriqa under its own domain.`]}),`\n`,_jsxs(_components.p,{children:[`If you mount Veriqa on your application’s host name instead, you have two options. Pass every\npath of the table below: Veriqa then serves them from the root of the host name, so your application\ncannot use `,_jsx(_components.code,{children:`/_content/`}),` and `,_jsx(_components.code,{children:`/hubs/`}),` on it. Or keep the root for your application and put the whole of Veriqa\n`,_jsx(_components.a,{href:`#under-a-path-prefix`,children:`under a path prefix`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`paths`,children:`Paths`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Path prefix`}),_jsx(_components.th,{children:`Who calls it`}),_jsx(_components.th,{children:`What it is`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/.well-known/`})}),_jsx(_components.td,{children:`your application`}),_jsx(_components.td,{children:`Discovery document and signing keys`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/connect/`})}),_jsx(_components.td,{children:`browser and your application`}),_jsx(_components.td,{children:`The OIDC endpoints and the sign-in page with its actions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/auth/`})}),_jsx(_components.td,{children:`browser`}),_jsxs(_components.td,{children:[`Pages outside the OIDC path: the confirmation page, the page that collects a missing phone number, email or profile field on the device that confirmed the sign-in, the pages of the Email channel that email links lead to, and the start and return addresses of `,_jsx(_components.a,{href:`/guides/channels#sign-in-with-a-provider-account`,children:`sign-in with a provider account`}),` (`,_jsx(_components.code,{children:`/auth/web-provider/{channel}/`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/hubs/`})}),_jsx(_components.td,{children:`browser, WebSocket`}),_jsx(_components.td,{children:`Live status of the sign-in page and of the page that collects missing details (SignalR)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/api/transaction/`})}),_jsx(_components.td,{children:`browser and your application`}),_jsx(_components.td,{children:`Status polling when the WebSocket is not available; creating a confirmation transaction and reading its result`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/_content/`})}),_jsx(_components.td,{children:`browser`}),_jsx(_components.td,{children:`Static files of the sign-in page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/api/channels/`})}),_jsx(_components.td,{children:`messaging platforms`}),_jsxs(_components.td,{children:[`Channel webhooks — must be reachable from the internet in `,_jsx(_components.code,{children:`Webhook`}),` mode`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/r/`})}),_jsx(_components.td,{children:`browser`}),_jsxs(_components.td,{children:[`Short links of the hop mode — only when it is on; the prefix is `,_jsx(_components.code,{children:`Veriqa:HopMode:HopPath`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/api/link-handle/`})}),_jsx(_components.td,{children:`your application`}),_jsxs(_components.td,{children:[`Exchange of a `,_jsx(_components.a,{href:`/scenarios/channel-linking#two-bots-handing-the-user-over-to-your-bot`,children:`link handle`}),` for the identity of the signed-in user — only when a post-completion button carries `,_jsx(_components.code,{children:`{handle}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`/api/collected-claims`})}),_jsx(_components.td,{children:`your application`}),_jsxs(_components.td,{children:[`Deletion of collected claims — only with a `,_jsx(_components.a,{href:`/guides/storage#collected-claims-store`,children:`collected claims store`})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`/health/live`}),`, `,_jsx(_components.code,{children:`/health/ready`}),` and `,_jsx(_components.code,{children:`/health/channels`}),` are for your own monitoring and need not be\npublished.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A list limited to `,_jsx(_components.code,{children:`/.well-known/`}),`, `,_jsx(_components.code,{children:`/connect/`}),`, `,_jsx(_components.code,{children:`/hubs/`}),`, `,_jsx(_components.code,{children:`/api/transaction/`}),` and `,_jsx(_components.code,{children:`/_content/`}),` is\nenough for a plain sign-in and looks complete. It stops being enough the day you ask for a phone\nnumber or an email, enable the Email channel, enable sign-in with a provider account such as\nGoogle, or switch a bot to `,_jsx(_components.code,{children:`Webhook`}),`: those pages, the provider’s return address and the webhooks\nlive under `,_jsx(_components.code,{children:`/auth/`}),` and `,_jsx(_components.code,{children:`/api/channels/`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`websocket`,children:`WebSocket`}),`\n`,_jsxs(_components.p,{children:[`The sign-in page learns through the `,_jsx(_components.code,{children:`/hubs/auth`}),` hub that the user has confirmed. The proxy must\nlet the connection upgrade — pass the `,_jsx(_components.code,{children:`Upgrade`}),` and `,_jsx(_components.code,{children:`Connection`}),` headers and use HTTP/1.1 towards\nVeriqa — and must not close an idle connection before a sign-in can finish. When the upgrade does\nnot get through, the page falls back to polling `,_jsx(_components.code,{children:`/api/transaction/{id}/status`}),`: the sign-in still\ncompletes, with a delay.`]}),`\n`,_jsx(Heading,{level:`2`,id:`nginx`,children:`NGINX`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,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:`32`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# http context`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` $`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`http_upgrade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connection_upgrade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` upgrade;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` close;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` http2 `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`on`}),_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:` server_name `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`auth.your-domain.com;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` ssl_certificate `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /etc/nginx/certs/server.crt;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` ssl_certificate_key `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/etc/nginx/certs/server.key;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Sign-in requests carry cookies; the 8k default answers 400 on a longer header`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` large_client_header_buffers `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 32k`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\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:8080;`})]}),`\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`,_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-For $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`proxy_add_x_forwarded_for`}),_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:` # WebSocket of the sign-in page`})}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`connection_upgrade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` proxy_read_timeout `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300s`}),_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:[`When Veriqa shares the host name with your application, keep the body of the `,_jsx(_components.code,{children:`location`}),` block and\nrepeat it for each prefix of the table instead of `,_jsx(_components.code,{children:`/`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`location`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ~`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` ^/(\\\\.well-known|connect|auth|hubs|api/transaction|api/channels|_content)/ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # the same proxy_* directives as above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`# Only for the features that need them: hop short links (r/ is the default Veriqa:HopMode:HopPath),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# and link handle exchange and collected claims deletion when your application calls them on this host`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`location`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ~`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` ^/(r/|api/link-handle/|api/collected-claims$) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # the same proxy_* directives as above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The repository contains a complete configuration with TLS settings and an HTTP-to-HTTPS redirect:\n`,_jsx(_components.code,{children:`samples/docker-compose/nginx.conf`}),` (`,_jsx(_components.a,{href:`/samples`,children:`samples`}),`).`]}),`\n`,_jsx(Heading,{level:`3`,id:`limit-requests-per-client-address`,children:`Limit requests per client address`}),`\n`,_jsxs(_components.p,{children:[`The core counts its limits per route, per user and per client, never per address (see\n`,_jsx(_components.a,{href:`/guides/hardening#rate-limiting-and-anti-abuse`,children:`Preparing for production`}),`). The limit per address\nis set on the proxy, and two routes need it first:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`/connect/authorize`}),`: a request creates a sign-in transaction;`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`POST /auth/email/start`}),`: a request sends a sign-in email. A `,_jsx(_components.code,{children:`GET`}),` to the same address only shows\nthe Email form, so the limit counts only `,_jsx(_components.code,{children:`POST`}),` requests.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Add to the `,_jsx(_components.code,{children:`http`}),` context:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`20`,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:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Addresses that many of your users share, such as the NAT of an office`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`geo `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_shared_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` default`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # 203.0.113.10 1;`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`# Sign-in transactions: every request to /connect/authorize`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_shared_address`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uri`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_authorize_key`}),_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:` default`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"~*^0:/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`connect/authorize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`/?$`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`binary_remote_addr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`# Sign-in emails: only POST /auth/email/start; a GET shows the form`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`map \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_shared_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`request_method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uri`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_email_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` default \"\";`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`~*`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`^0:POST:/auth/email/start/?$`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`binary_remote_addr`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`limit_req_zone $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_authorize_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` zone=veriqa_authorize:10m rate=20r/m;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`limit_req_zone $`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`veriqa_email_key`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` zone=veriqa_email:10m rate=5r/m;`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`And to the `,_jsx(_components.code,{children:`server`}),` block:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`limit_req `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`zone=veriqa_authorize burst=20 nodelay;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`limit_req `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`zone=veriqa_email burst=5 nodelay;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`limit_req_status `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`What to keep in mind:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Only the two routes are counted.`}),` NGINX does not count a request with an empty key, and the\n`,_jsx(_components.code,{children:`map`}),` blocks leave the key empty for every other request. The sign-in page actions under\n`,_jsx(_components.code,{children:`/connect/authorize/callback`}),`, the form and the pages of email links are left to the core buckets.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The values are a starting point`}),` for one person or a household behind one address: up to 21\nsign-ins at once, then one every 3 seconds; up to 6 emails at once, then one every 12 seconds.\nA request beyond that gets `,_jsx(_components.code,{children:`429`}),`, the code the core itself returns when a bucket is used up, so\none fail2ban rule covers both. Without `,_jsx(_components.code,{children:`limit_req_status`}),`, NGINX would answer `,_jsx(_components.code,{children:`503`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Many users behind one address.`}),` An office often sends all its employees out through one NAT\naddress, and a limit per address counts them as one visitor. List such addresses in the `,_jsx(_components.code,{children:`geo`}),`\nblock with the value `,_jsx(_components.code,{children:`1`}),`: the proxy does not limit them, and only the core buckets count them. To\nlimit them as well, give them a zone of their own with a higher rate.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A load balancer in front of NGINX.`}),` `,_jsx(_components.code,{children:`$binary_remote_addr`}),` is then the address of the balancer.\nRestore the client address with the realip module (`,_jsx(_components.code,{children:`set_real_ip_from`}),`, `,_jsx(_components.code,{children:`real_ip_header`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Under a `,_jsx(_components.a,{href:`#under-a-path-prefix`,children:`path prefix`})]}),`, add it to the paths in the `,_jsx(_components.code,{children:`map`}),` blocks:\n`,_jsx(_components.code,{children:`/auth/veriqa/connect/authorize`}),`. NGINX checks the path the browser requested, whether it then\npasses the prefix to Veriqa or trims it.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`under-a-path-prefix`,children:`Under a path prefix`}),`\n`,_jsxs(_components.p,{children:[`With a path prefix every address of Veriqa starts with it —\n`,_jsx(_components.code,{children:`https://app.your-domain.com/auth/veriqa/connect/token`}),` — and the root paths of the host name stay\nwith your application. Set the prefix on the Veriqa host and repeat it in every public address you\nconfigure:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Key`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Veriqa:PathBase`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/auth/veriqa`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Veriqa:OpenIddict:Server:Issuer`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`https://app.your-domain.com/auth/veriqa`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Veriqa:Channels:Email:PublicBaseUrl`}),`, `,_jsx(_components.code,{children:`Veriqa:Channels:{channel}:WebProvider:PublicBaseUrl`}),`, `,_jsx(_components.code,{children:`WebhookBaseUrl`}),` of a channel in `,_jsx(_components.code,{children:`Webhook`}),` mode`]}),_jsx(_components.td,{children:`the same address, with the prefix`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Veriqa:PathBase`}),` starts with `,_jsx(_components.code,{children:`/`}),`, does not end with `,_jsx(_components.code,{children:`/`}),` and may have several segments. It is\nwritten as plain text: no `,_jsx(_components.code,{children:`?`}),`, `,_jsx(_components.code,{children:`#`}),`, `,_jsx(_components.code,{children:`%`}),`, `,_jsx(_components.code,{children:`\\\\`}),`, whitespace, and no `,_jsx(_components.code,{children:`.`}),` or `,_jsx(_components.code,{children:`..`}),` segment. Any other\nvalue stops the host at startup; an empty one means the root. The prefix applies whichever\nway the proxy forwards the path — use one of the two blocks:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The path is passed as it is: Veriqa receives /auth/veriqa/connect/token`})}),`\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:` /auth/veriqa/ `}),_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:8080;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # the same proxy_* directives as above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`# The prefix is trimmed: Veriqa receives /connect/token`})}),`\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:` /auth/veriqa/ `}),_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:8080/;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # the same proxy_* directives as above`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`https://app.your-domain.com/auth/veriqa/.well-known/openid-configuration`}),` then returns the `,_jsx(_components.code,{children:`issuer`}),`\nand every endpoint with the prefix. A client that reads the metadata per RFC 8414 asks for it at the\nroot of the host name, with the path of the issuer appended. Map that address:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`location`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:` /.well-known/oauth-authorization-server/auth/veriqa `}),_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:8080/auth/veriqa/.well-known/oauth-authorization-server;`})]}),`\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-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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This mapping is verified for a proxy that passes the path unchanged. With a proxy that trims the\nprefix the target is the same address without `,_jsx(_components.code,{children:`/auth/veriqa`}),`; that variant has not been verified.`]}),`\n`,_jsx(_components.p,{children:`What to keep in mind:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A prefix that a path of Veriqa itself starts with`}),` — `,_jsx(_components.code,{children:`/auth`}),`, `,_jsx(_components.code,{children:`/api`}),`, `,_jsx(_components.code,{children:`/connect`}),`, `,_jsx(_components.code,{children:`/hubs`}),`,\n`,_jsx(_components.code,{children:`/_content`}),`, `,_jsx(_components.code,{children:`/health`}),`, or the path of hop links (`,_jsx(_components.code,{children:`/r`}),` by default, `,_jsx(_components.code,{children:`Veriqa:HopMode:HopPath`}),`) —\nworks only when the proxy passes the path unchanged. Behind a trimming proxy such a prefix returns\n`,_jsx(_components.code,{children:`404`}),`. `,_jsx(_components.code,{children:`/auth/veriqa`}),` is not one of them.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requests that reach an instance directly carry no prefix`}),` — a health probe asks\n`,_jsx(_components.code,{children:`http://127.0.0.1:8080/health/live`}),`. Veriqa cannot tell such a request from one the proxy\ntrimmed and serves both, so blocking outside access to the instance root is the proxy’s job.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Several instances.`}),` The proxy has to keep a browser on one instance (session affinity,\n`,_jsx(_components.code,{children:`ip_hash`}),` in NGINX): without it the hub of the sign-in page does not connect. The Email channel\nhas a limit of its own — the multi-instance caveat in\n`,_jsx(_components.a,{href:`/guides/channels#email`,children:`Channel setup, Email`}),`. Neither depends on the prefix.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Verified under a prefix:`}),` sign-in by Email in both modes with its inbound webhook, the messaging channel webhook (`,_jsx(_components.code,{children:`Webhook`}),` mode), the `,_jsx(_components.a,{href:`/guides/phone-number`,children:`phone number`}),` request, confirming\nan email address with a code or with a message the user sends during\n`,_jsx(_components.a,{href:`/concepts/claim-enrichment`,children:`claim enrichment`}),`, the tokens and `,_jsx(_components.code,{children:`userinfo`}),`, the form that collects\na missing profile field, and a confirmation transaction created by your server.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Veriqa:PathBase`}),` is a setting of the shipped host. When Veriqa is embedded in your ASP.NET Core\napplication, the prefix is the `,_jsx(_components.code,{children:`UsePathBase`}),` of that application, and discovery carries it.`]}),`\n`,_jsx(Heading,{level:`2`,id:`other-proxies`,children:`Other proxies`}),`\n`,_jsxs(_components.p,{children:[`Traefik, Caddy and IIS need the same three things: every path of the table, the `,_jsx(_components.code,{children:`X-Forwarded-Proto`}),`\nand `,_jsx(_components.code,{children:`X-Forwarded-For`}),` headers, and the WebSocket upgrade. Traefik and Caddy pass the upgrade\nwithout configuration; in IIS the WebSocket Protocol feature has to be installed. Under a path\nprefix, only the prefix needs to be passed instead of the paths in the table — see\n`,_jsx(_components.a,{href:`#under-a-path-prefix`,children:`Under a path prefix`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check`,children:`Check`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://auth.your-domain.com/.well-known/openid-configuration`}),` returns `,_jsx(_components.code,{children:`https`}),` URLs on your host\nname. `,_jsx(_components.code,{children:`http`}),` URLs or `,_jsx(_components.code,{children:`invalid_request`}),` mean the proxy is not trusted —\n`,_jsx(_components.a,{href:`/quickstart/self-hosted#6-put-it-behind-a-reverse-proxy`,children:`self-hosted, step 6`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`On the sign-in page the browser’s network tab shows `,_jsx(_components.code,{children:`/hubs/auth`}),` answered with `,_jsx(_components.code,{children:`101 Switching Protocols`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`Request Header Or Cookie Too Large`}),` — raise `,_jsx(_components.code,{children:`large_client_header_buffers`}),`.`]}),`\n`]})]})}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":"Behind a reverse proxy","description":"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.","href":"/guides/reverse-proxy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Give Veriqa a host name of its own","slug":"give-veriqa-a-host-name-of-its-own","depth":2,"children":[]},{"title":"Paths","slug":"paths","depth":2,"children":[]},{"title":"WebSocket","slug":"websocket","depth":2,"children":[]},{"title":"NGINX","slug":"nginx","depth":2,"children":[{"title":"Limit requests per client address","slug":"limit-requests-per-client-address","depth":3,"children":[]}]},{"title":"Under a path prefix","slug":"under-a-path-prefix","depth":2,"children":[]},{"title":"Other proxies","slug":"other-proxies","depth":2,"children":[]},{"title":"Check","slug":"check","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"veriqa","siteName":"Veriqa Docs","title":"Behind a reverse proxy - Veriqa Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"ru":{"href":"/ru/guides/reverse-proxy","matchLevel":1},"en":{"href":"/guides/reverse-proxy","matchLevel":0}}},"lastModified":"2026-11-12T17:29:10.013Z","originalFileLocation":"guides/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=\"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Veriqa Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_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=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Behind a reverse proxy - Veriqa Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Veriqa Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://veriqa.app/docs/guides/reverse-proxy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://veriqa.mintlify.site/docs/_mintlify/api/og/v2?division=Installation+and+configuration\u0026amp;title=Behind+a+reverse+proxy\u0026amp;description=Which+paths+a+reverse+proxy+in+front+of+Veriqa+has+to+pass%2C+what+the+WebSocket+of+the+sign-in+page+needs%2C+and+a+ready-to-use+NGINX+configuration+with+a+limit+pe\u0026amp;theme=205cfe5f80187946f34caccd\u0026amp;signature=31d18ee0452e0428f8a45168a31f6f93f80c2d5ebf3961eddaff2c9fff9d48ee\">\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=\"Behind a reverse proxy - Veriqa Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://veriqa.mintlify.site/docs/_mintlify/api/og/v2?division=Installation+and+configuration\u0026amp;title=Behind+a+reverse+proxy\u0026amp;description=Which+paths+a+reverse+proxy+in+front+of+Veriqa+has+to+pass%2C+what+the+WebSocket+of+the+sign-in+page+needs%2C+and+a+ready-to-use+NGINX+configuration+with+a+limit+pe\u0026amp;theme=205cfe5f80187946f34caccd\u0026amp;signature=31d18ee0452e0428f8a45168a31f6f93f80c2d5ebf3961eddaff2c9fff9d48ee\">\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=\"/docs/mintlify-assets/_mintlify/favicons/veriqa/bpcfdOhtXN3YPGR2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Veriqa Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e53837\">\u003clink data-mint-head rel=\"canonical\" href=\"https://veriqa.app/docs/guides/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/reverse-proxy.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://veriqa.app/docs/guides/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://veriqa.app/docs/ru/guides/reverse-proxy\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://veriqa.app/docs/guides/reverse-proxy\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://veriqa.app/#organization\",\"name\":\"Veriqa Docs\",\"url\":\"https://veriqa.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/veriqa/qw6LDrivzjnIjrOq/logo/light.svg?fit=max\u0026auto=format\u0026n=qw6LDrivzjnIjrOq\u0026q=85\u0026s=9def38397d6be0d8f9207dfb5cd7b019\"}},{\"@type\":\"WebSite\",\"@id\":\"https://veriqa.app/docs#website\",\"name\":\"Veriqa Docs\",\"url\":\"https://veriqa.app/docs\",\"publisher\":{\"@id\":\"https://veriqa.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://veriqa.app/docs/guides/reverse-proxy#webpage\",\"url\":\"https://veriqa.app/docs/guides/reverse-proxy\",\"name\":\"Behind a reverse proxy\",\"description\":\"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\",\"dateModified\":\"2026-11-12T17:29:10.013Z\",\"isPartOf\":{\"@id\":\"https://veriqa.app/docs#website\"},\"breadcrumb\":{\"@id\":\"https://veriqa.app/docs/guides/reverse-proxy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://veriqa.app/docs/guides/reverse-proxy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://veriqa.app/docs/concepts/comparison\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation and configuration\",\"item\":\"https://veriqa.app/docs/guides/customization\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Behind a reverse proxy\",\"item\":\"https://veriqa.app/docs/guides/reverse-proxy\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://veriqa.app/docs/guides/reverse-proxy#article\",\"headline\":\"Behind a reverse proxy\",\"name\":\"Behind a reverse proxy\",\"description\":\"Which paths a reverse proxy in front of Veriqa has to pass, what the WebSocket of the sign-in page needs, and a ready-to-use NGINX configuration with a limit per client address.\",\"url\":\"https://veriqa.app/docs/guides/reverse-proxy\",\"mainEntityOfPage\":{\"@id\":\"https://veriqa.app/docs/guides/reverse-proxy#webpage\"},\"dateModified\":\"2026-11-12T17:29:10.013Z\",\"publisher\":{\"@id\":\"https://veriqa.app/#organization\"},\"isPartOf\":{\"@id\":\"https://veriqa.app/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Veriqa Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Veriqa Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/guides/reverse-proxy.md","siteName":"Veriqa Docs","nav":{"global":null,"languages":[{"language":"ru","navbar":{"links":[{"href":"https://veriqa.app/source","label":"Репозиторий"}],"primary":{"type":"button","label":"Живое демо","href":"https://veriqa.app/demo"}},"pages":[{"title":"ru","href":"/ru/guides/reverse-proxy"}]},{"language":"en","default":true,"navbar":{"links":[{"href":"https://veriqa.app/source","label":"Repository"}],"primary":{"type":"button","label":"Live demo","href":"https://veriqa.app/demo?lang=en"}},"groups":[{"group":"Get started","pages":[{"title":"Veriqa — an open-source project for passwordless authentication through popular messaging apps and email","sidebarTitle":"Veriqa","href":""},{"title":"Documentation contents","href":"/contents"},{"title":"Messaging apps, email and account services","href":"/messengers-and-accounts"},{"title":"Sign-in methods compared","href":"/concepts/sign-in-comparison"},{"title":"Basic scenarios","href":"/basic-scenarios"},{"title":"Getting the phone number and email","href":"/concepts/phone-and-email"},{"title":"Collecting extra claims","href":"/concepts/claim-enrichment"},{"title":"Design, texts and localization","href":"/design-texts-localization"},{"title":"Ready-made recipes","href":"/ready-made-recipes"},{"group":"Quickstart","pages":[{"title":".NET quickstart","href":"/quickstart/dotnet"},{"title":"Node.js quickstart","href":"/quickstart/node"},{"title":"Java quickstart","href":"/quickstart/java"},{"title":"Python quickstart","href":"/quickstart/python"},{"title":"Self-hosted quickstart","href":"/quickstart/self-hosted"},{"title":"Install as an OS service","href":"/quickstart/os-service"}]},{"title":"For AI agents","href":"/ai-agents"},{"title":"FAQ","href":"/faq"},{"title":"Veriqa, BCP 247 and the threat model","href":"/concepts/cross-device-security"}]},{"group":"Samples","pages":[{"title":"Live examples","href":"/samples/online"},{"group":"Gallery","root":{"title":"Gallery","href":"/samples/screenshots"},"pages":[{"title":"Telegram","href":"/samples/screenshots/telegram"},{"title":"WhatsApp","href":"/samples/screenshots/whatsapp"},{"title":"Messenger","href":"/samples/screenshots/messenger"},{"title":"Instagram","href":"/samples/screenshots/instagram"},{"title":"Google","href":"/samples/screenshots/google"},{"title":"Email","href":"/samples/screenshots/email"}]},{"group":"Videos","pages":[{"title":"Sign-in on a website","href":"/videos/web-sign-in"},{"title":"Sign-in on a 1C-Bitrix store","href":"/videos/bitrix-sign-in"},{"title":"Sign-in on a phone","href":"/videos/mobile-sign-in"},{"title":"Sign-in on a TV","href":"/videos/tv-sign-in"},{"title":"Step-up on a TV","href":"/videos/tv-step-up"},{"title":"Sign-in on a desktop","href":"/videos/desktop-sign-in"},{"title":"Step-up on a desktop","href":"/videos/desktop-step-up"},{"title":"Step-up on a phone","href":"/videos/mobile-step-up"},{"title":"Claude Code: a tool call","href":"/videos/claude-code-tool-call"},{"title":"Claude Code: a long command cycle","href":"/videos/claude-code-command-cycle"},{"title":"Claude Code: two approvers","href":"/videos/claude-code-two-approvers"}]},{"title":"Samples","href":"/samples"},{"title":"Sign-in on a website via a messaging app","href":"/samples/sign-in"},{"title":"Step-up, second factor, human-in-the-loop","href":"/samples/confirmation"},{"title":"Nova Stream sample — TV sign-in emulator","href":"/samples/showcase/streaming-tv"},{"title":"Helio sample — customer support","href":"/samples/showcase/support-desk"},{"title":"Agent action approvals","href":"/samples/showcase/claude-code"}]},{"group":"Guides","pages":[{"group":"Concepts","pages":[{"title":"How Veriqa differs","href":"/concepts/comparison"},{"title":"Architecture","href":"/concepts/architecture"},{"title":"How the auth flow works","href":"/concepts/auth-flow"},{"title":"Hop mode","href":"/concepts/hop-mode"},{"title":"OIDC + Veriqa explainer","href":"/concepts/oidc-explainer"},{"title":"Initiator context","href":"/concepts/initiator-context"},{"title":"How a sign-in completes","href":"/concepts/completion"}]},{"group":"Installation and configuration","pages":[{"title":"Configuration \u0026 customization","href":"/guides/customization"},{"title":"Declare your own configuration keys","href":"/guides/config-keys"},{"title":"Storage","href":"/guides/storage"},{"title":"Client compatibility","description":"Compatibility quirks: named relaxations of the request form, enabled for one client.","href":"/guides/client-compatibility"},{"title":"Behind a reverse proxy","href":"/guides/reverse-proxy"},{"title":"Preparing for production","description":"The checklist to run before shipping a Veriqa integration to production.","href":"/guides/hardening"},{"title":"Rate limits for your traffic","href":"/guides/rate-limits"},{"title":"Security and data handling","href":"/guides/data-handling"}]},{"group":"Monitoring","pages":[{"title":"Observability","href":"/guides/observability"},{"title":"Troubleshooting","href":"/guides/troubleshooting"}]},{"group":"Messaging apps and channels","pages":[{"title":"Supported messaging apps","href":"/guides/supported-channels"},{"title":"Sign-in by email","sidebarTitle":"Email","href":"/guides/email"},{"title":"Sign-in with account services: Google, Apple and others","sidebarTitle":"Account services: Google, Apple and others","href":"/guides/account-services"},{"title":"Channel setup","href":"/guides/channels"},{"title":"Phone number","href":"/guides/phone-number"},{"title":"You already have a bot","href":"/guides/existing-bot"},{"title":"Build a channel in C#","href":"/guides/custom-channel-adapter"},{"title":"Build a channel in any language","href":"/guides/http-channel-adapter"}]}]},{"group":"Use cases","pages":[{"title":"All use cases","href":"/scenarios/overview"},{"title":"Passwordless sign-in and registration","href":"/scenarios/passwordless-login"},{"title":"Sign-in and channel linking in one action","href":"/scenarios/channel-linking"},{"title":"Second factor, step-up and action confirmations","href":"/scenarios/step-up"},{"title":"Replacing SMS codes","href":"/scenarios/sms-replacement"},{"title":"Leads and feedback without CAPTCHA","href":"/scenarios/lead-capture"},{"title":"Account recovery","href":"/scenarios/account-recovery"},{"title":"Sign-in surfaces","href":"/scenarios/surfaces"},{"title":"Sign in with a provider account, confirmed on the phone","href":"/scenarios/provider-account-sign-in"},{"title":"Smart TV and keyboard-free surfaces","href":"/scenarios/smart-tv"},{"title":"Place and identity","href":"/scenarios/place-and-identity"},{"title":"Passkeys alongside Veriqa","href":"/scenarios/passkey-with-veriqa"},{"title":"Sign-in from trusted networks","href":"/scenarios/trusted-network"},{"title":"Approving AI-agent actions","href":"/scenarios/agent-approvals"},{"title":"Stronger sign-in with a chain of channels","href":"/scenarios/auth-chain"},{"title":"Resilience to a personal-data leak","href":"/scenarios/leak-resilience"},{"title":"Honest voting on any website","href":"/scenarios/honest-voting"}]},{"group":"Ready-made recipes","pages":[{"title":"Ready-made recipes","sidebarTitle":"List of ready-made recipes","href":"/recipes/overview"},{"title":"Passwordless sign-in for a Node.js, Python or Java web app","href":"/recipes/web-app-sign-in"},{"title":"Sign in with Telegram on a WordPress site","href":"/recipes/wordpress-telegram"},{"group":"Veriqa and CMS","pages":[{"title":"Veriqa in a CMS","href":"/integrations/overview"},{"title":"WordPress","href":"/integrations/wordpress"},{"title":"Drupal","href":"/integrations/drupal"},{"title":"1C-Bitrix","href":"/integrations/bitrix"},{"title":"TYPO3","href":"/integrations/typo3"},{"title":"Joomla","href":"/integrations/joomla"},{"title":"Shopify, Wix and other SaaS builders","href":"/integrations/saas-builders"}]},{"group":"Veriqa in business systems","pages":[{"title":"Veriqa in business systems","href":"/integrations/apps"},{"title":"Confirmed form submission","href":"/integrations/confirmed-form"}]},{"title":"Moving off SMS codes","href":"/recipes/replace-sms"},{"title":"Confirming a sensitive operation in a messaging app","href":"/recipes/confirm-operation"},{"title":"Team sign-in to GitLab, Grafana or Nextcloud","href":"/recipes/team-apps"},{"title":"A website form with a verified contact","href":"/recipes/lead-form"},{"title":"Sign-in on a Smart TV or a kiosk","href":"/recipes/smart-tv"},{"title":"Testing the integration locally","href":"/integrations/local-testing"}]},{"group":"Cloud","pages":[{"title":"Veriqa Cloud","href":"/cloud/overview"},{"title":"Connecting to the cloud","href":"/cloud/connect"},{"title":"Channel buttons on your own page","href":"/cloud/channel-buttons"},{"title":"Sign-in window settings (ui_config)","href":"/cloud/ui-config"}]},{"group":"Reference","pages":[{"title":"Configuration reference","href":"/reference/configuration"},{"title":"Server-to-server confirmation API","href":"/reference/confirmation-api"},{"title":"OIDC and OAuth 2.0 support","href":"/reference/oidc-capabilities"},{"title":"Known limitations","href":"/reference/limitations"}]},{"group":"Releases","pages":[{"title":"Coming next","sidebarTitle":"In the next release","href":"/releases/next"},{"group":"Previous","pages":[{"title":"0.7 — hop mode, channels in any language and four new built-in channels","href":"/releases/0.7"},{"title":"0.6.11 — sign-in with a provider account and a code from the email","href":"/releases/0.6.11"},{"title":"0.6.10 — sign-in and confirmation as one process","href":"/releases/0.6.10"},{"title":"0.6.9 — sign-in with a code and a ready-made server image","href":"/releases/0.6.9"},{"title":"0.6.8 — Messenger, WeChat and Viber","href":"/releases/0.6.8"},{"title":"0.6.7 — Instagram, markup in page texts and a path prefix","href":"/releases/0.6.7"},{"title":"0.6.6 — a cancel button, channel policies and email over IMAP","href":"/releases/0.6.6"},{"title":"0.6.5 — confirmation binding and your own sign-in page texts","href":"/releases/0.6.5"},{"title":"0.6.4 — claims completion and the phone number","href":"/releases/0.6.4"},{"title":"0.6.3 — a channel in any language over HTTP","href":"/releases/0.6.3"},{"title":"0.6.2 — hop mode","href":"/releases/0.6.2"},{"title":"0.6 — first public release","href":"/releases/0.6"}]}]}]}]},"basePath":"","title":"Behind a reverse proxy - Veriqa Docs","deploymentId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","buildId":"dpl_2Ja9WRbxdgSB12oQLm2PJEkKFtyF","dynamics":[],"chunks":[]}