|
|
1 месяц назад | |
|---|---|---|
| .. | ||
| errors | 1 месяц назад | |
| README.md | 1 месяц назад | |
| branded-errors.conf | 1 месяц назад | |
| default.conf | 1 месяц назад | |
| global-api-01.smartbotics.ai.conf | 1 месяц назад | |
| qdrant-1.shop.static.shopcall.ai.conf | 1 месяц назад | |
| vectorapi-proxy.conf | 1 месяц назад | |
A copy of what is running on the prod droplet, kept here so it is reviewable and recoverable. Nothing in this directory is deployed by the build or by any package: editing a file here changes nothing until it is copied to the host. The host is the source of truth; this is the backup and the review surface.
| file | installed as |
|---|---|
global-api-01.smartbotics.ai.conf |
/etc/nginx/sites-available/global-api-01.smartbotics.ai (symlinked into sites-enabled) |
vectorapi-proxy.conf |
/etc/nginx/snippets/vectorapi-proxy.conf |
branded-errors.conf |
/etc/nginx/snippets/branded-errors.conf |
errors/_brand/* |
/var/www/smartbotics-errors/_brand/ |
qdrant-1.shop.static.shopcall.ai.conf |
/etc/nginx/sites-available/qdrant-1.shop.static.shopcall.ai |
default.conf |
/etc/nginx/sites-available/default |
The last two are copied for recovery and review only. The old hostname also
fronts qdrant on 142.93.100.6:6334, which has nothing to do with this
service, so change them on the host with that in mind. default is the
catch-all a request to the bare IP or an unknown hostname lands on.
All four server blocks across those two files include branded-errors.conf,
so every nginx-raised error on this box is branded. Verified afterwards that
qdrant still answers its own JSON on 6334 and that /rag/ is untouched.
The customer-facing host is a WHITELIST. Only /api/ and /healthz are
proxied; everything else answers 404, the admin web UI and the docs included.
A deny-list would expose whatever a later release adds, the moment the package
upgrades, with nobody noticing. Adding a route here is meant to be a decision.
proxy_intercept_errors must stay off. The branded pages are for the errors
nginx itself raises. With interception on, vectorapi's own JSON error envelope
would be replaced by HTML and every client parsing it would break.
scp packaging/nginx/branded-errors.conf prod:/tmp/
ssh prod 'sudo cp /tmp/branded-errors.conf /etc/nginx/snippets/ && sudo nginx -t && sudo systemctl reload nginx'
Then verify from OUTSIDE, and not in the same breath as the reload: the first request after a reload can land on the old worker set and answer 404, which reads exactly like a broken location block.