Files
Domain_web/nginx/domain-web.conf
Андрей Бобырев e5ea14f046 feat(deploy): full one-line install with search API
Bundle static site, FastAPI search, nginx proxy, and systemd unit so
a fresh Ubuntu VPS can run curl install.sh and get /search working.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 22:29:10 +03:00

35 lines
787 B
Plaintext

# PCA Lab / Domain Web — HTTP :80 (does not touch :443 / Amnezia)
# Placeholders WEB_ROOT are replaced by install.sh
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root WEB_ROOT;
index index.html;
# Clean URL for domain search
location = /search {
try_files /search.html =404;
}
location = /search.html {
return 301 /search;
}
include /etc/nginx/snippets/domain-web-api.conf;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(json|jsx|html|css|js|png|jpg|svg|ico|woff2?)$ {
expires 1h;
add_header Cache-Control "public";
}
access_log /var/log/nginx/domain-web-access.log;
error_log /var/log/nginx/domain-web-error.log;
}