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:
15
deploy/drinking-games.service
Normal file
15
deploy/drinking-games.service
Normal 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
|
||||
Reference in New Issue
Block a user