mirror of
https://github.com/andrey271192/Domain_web.git
synced 2026-09-20 14:41:58 +00:00
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>
This commit is contained in:
21
systemd/domain-web-api.service
Normal file
21
systemd/domain-web-api.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Domain Web Search API
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=domainbot
|
||||
Group=domainbot
|
||||
WorkingDirectory=/opt/domain-web-api
|
||||
Environment=PYTHONPATH=/opt/domain-finder-bot
|
||||
Environment=DOMAIN_FINDER_BOT_DIR=/opt/domain-finder-bot
|
||||
EnvironmentFile=-/opt/domain-finder-bot/.env
|
||||
ExecStart=/opt/domain-web-api/.venv/bin/uvicorn main:app --host 127.0.0.1 --port 8081 --workers 1
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user