Files
drinking-game/deploy/drinking-games.service
gongch 6d1dd5d56c 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>
2026-06-17 10:05:10 +08:00

16 lines
346 B
Desktop File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[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