From 6e8f245a6fc5bed08cfa96e4f669dc6af134afca Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Thu, 12 Feb 2026 20:06:25 +0000 Subject: Add deployment config: nginx proxy, HTTPS, systemd services Co-Authored-By: Claude Opus 4.6 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 23599b3..122a1a8 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,27 @@ npm run dev Then open http://localhost:5173 in your browser. +## Deployment (systemd + HTTPS) + +The app can be deployed with nginx reverse proxy, Let's Encrypt HTTPS, and systemd services for persistent background running. + +### Service Management + +```bash +# Restart services +sudo systemctl restart llm-council-backend +sudo systemctl restart llm-council-frontend + +# View logs +sudo journalctl -u llm-council-backend -f +sudo journalctl -u llm-council-frontend -f + +# Check status +sudo systemctl status llm-council-backend llm-council-frontend +``` + +Service files are at `/etc/systemd/system/llm-council-{backend,frontend}.service`. Nginx config is at `/etc/nginx/sites-available/llm-council.blackhao.com`. Both services auto-start on boot and auto-restart on crash. + ## Tech Stack - **Backend:** FastAPI (Python 3.10+), async httpx, OpenRouter API -- cgit v1.2.3