- server.py: zero-dependency stdlib backend (HTTP + WebSocket /ws), 大话骰 rule engine, server-driven bots - live.html: real MVP frontend wired to the backend over WebSocket - index.html/app.js/style.css: older static prototype - deploy/: systemd unit + Nginx reverse proxy + Let's Encrypt setup.sh - test_*.py: standalone HTTP / in-process test scripts Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
346 B
Desktop File
16 lines
346 B
Desktop File
[Unit]
|
||
Description=Drinking Games Hub (大话骰)
|
||
After=network.target
|
||
|
||
[Service]
|
||
Type=simple
|
||
WorkingDirectory=/opt/drinking-games
|
||
ExecStart=/usr/bin/python3 /opt/drinking-games/server.py
|
||
Restart=always
|
||
RestartSec=2
|
||
User=root
|
||
# server.py 监听 0.0.0.0:8765,由 Nginx 反代;防火墙应只放行 80/443
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|