mirror of
https://github.com/andrey271192/Domain_web.git
synced 2026-09-20 14:41:58 +00:00
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>
35 lines
787 B
Plaintext
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;
|
|
}
|