Initial commit: FunConnect project with server, relay, client and admin panel
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
36
.env.example
Normal file
36
.env.example
Normal file
@@ -0,0 +1,36 @@
|
||||
# FunMC 环境变量配置示例
|
||||
# 复制此文件为 .env 并修改以下配置
|
||||
|
||||
# ============== 必填配置 ==============
|
||||
|
||||
# 服务器公网 IP (必填,客户端将使用此地址连接)
|
||||
SERVER_IP=your.server.ip.here
|
||||
|
||||
# ============== 可选配置 ==============
|
||||
|
||||
# 服务器名称 (显示在客户端和管理面板)
|
||||
SERVER_NAME=FunMC Server
|
||||
|
||||
# 服务器域名 (如果有的话,客户端将优先使用域名)
|
||||
SERVER_DOMAIN=
|
||||
|
||||
# 数据库密码 (建议修改为强密码)
|
||||
DB_PASSWORD=funmc_secret_password
|
||||
|
||||
# JWT 密钥 (必须修改为随机字符串!)
|
||||
JWT_SECRET=change_this_to_a_very_long_random_string
|
||||
|
||||
# 管理员账号
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_PASSWORD=admin123
|
||||
|
||||
# ============== 高级配置 ==============
|
||||
|
||||
# API 监听地址
|
||||
LISTEN_ADDR=0.0.0.0:3000
|
||||
|
||||
# 日志级别 (debug, info, warn, error)
|
||||
RUST_LOG=info
|
||||
|
||||
# 中继服务器端口
|
||||
RELAY_PORT=7900
|
||||
Reference in New Issue
Block a user