Initial commit: FunConnect project with server, relay, client and admin panel

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-24 20:56:36 +08:00
parent eb6e901440
commit b6891483ae
167 changed files with 16147 additions and 106 deletions

View File

@@ -0,0 +1,36 @@
[Unit]
Description=FunMC Main Server - Minecraft Multiplayer Assistant API
Documentation=https://github.com/mofangfang/funmc
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=funmc
Group=funmc
WorkingDirectory=/opt/funmc
ExecStart=/opt/funmc/server
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=funmc-server
# 环境变量
Environment=RUST_LOG=funmc_server=info,tower_http=info
Environment=LISTEN_ADDR=0.0.0.0:3000
EnvironmentFile=/opt/funmc/.env
# 安全限制
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
ReadWritePaths=/var/log/funmc
PrivateTmp=yes
# 资源限制
LimitNOFILE=65536
LimitNPROC=4096
[Install]
WantedBy=multi-user.target