Initial commit: 酒桌派对 / 大话骰 multiplayer drinking-game hub

- 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>
This commit is contained in:
gongch
2026-06-17 10:05:10 +08:00
commit 6d1dd5d56c
28 changed files with 2167 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
[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