Merge branch 'B2B'
Some checks failed
Architecture Governance / architecture (push) Has been cancelled
Deploy Frontend / deploy (push) Has been cancelled

This commit is contained in:
2026-08-20 16:29:22 +04:00
2 changed files with 7 additions and 1 deletions

View File

@@ -77,7 +77,10 @@ It creates the shared `api.gorbushka.market`, issues/renews its certificate,
configures CORS for `gorbushka.market` and its subdomains, and proxies all paths
to the backend. A request from `store1.gorbushka.market` reaches upstream with
`Host` and `X-Storefront-Host` set to `store1.gorbushka.market`, while
`X-Forwarded-Host` remains `api.gorbushka.market`.
`X-Forwarded-Host` remains `api.gorbushka.market`. nginx terminates CORS and
strips the browser `Origin` before proxying because the current `:445` service
rejects direct browser origins; tenant identity is carried by the trusted
storefront header instead.
`store1.example.com` requires no additional API DNS or certificate; it uses the
same `api.example.com` certificate as the root storefront.