fix(api): derive host from storefront domain
Some checks failed
Architecture Governance / architecture (push) Has been cancelled

Every storefront, including nested subdomains, uses its matching api.<hostname> endpoint.
This commit is contained in:
2026-08-20 14:31:22 +04:00
parent f4ea4c7af8
commit 640360d63c
15 changed files with 88 additions and 120 deletions

View File

@@ -87,16 +87,6 @@ server {
proxy_read_timeout 60s;
}
location /backend/ {
proxy_pass http://127.0.0.1:8080/;
proxy_http_version 1.1;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
proxy_read_timeout 60s;
}
location / {
try_files \$uri \$uri/ /index.html;
}