DRACO deployed build: RAG oracle, 1855 books, 116k passages, MCP+BTCPay
This commit is contained in:
14
deploy/draco.service
Normal file
14
deploy/draco.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=DRACO — Book-Forged Code Oracle
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/draco
|
||||
ExecStart=/opt/draco/venv/bin/gunicorn -w 2 --threads 8 -b 127.0.0.1:8012 --timeout 300 app:app
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
deploy/nginx-draco.conf
Normal file
17
deploy/nginx-draco.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name draco.thetempleofdoom.com _;
|
||||
|
||||
access_log /var/log/nginx/draco.access.log;
|
||||
error_log /var/log/nginx/draco.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8012;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header CF-Connecting-IP $http_cf_connecting_ip;
|
||||
proxy_buffering off; # SSE
|
||||
proxy_cache off;
|
||||
proxy_read_timeout 300s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user