Files
chuanqi-qycq-web/module/server/.env.example
艾贤凌 6d4a72161f inint
2026-03-16 12:05:55 +08:00

48 lines
2.3 KiB
Plaintext
Raw 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.
# ═══════════════════════════════════════════════════════════
# 清渊传奇 Node.js 服务端 — 环境变量配置示例
# 复制此文件为 .env 并按实际情况修改
# ═══════════════════════════════════════════════════════════
# ─── 服务器 ────────────────────────────────────────────────
# Koa 监听端口
PORT=3001
# ─── JWT 密钥(必须修改!生产环境请使用强随机字符串)────────
SECRET_KEY=change_me_to_a_strong_random_string
# ─── 账号数据库mir_web──────────────────────────────────
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=your_mysql_password
DB_NAME=mir_web
# ─── 游戏服务器 ────────────────────────────────────────────
# 游戏服主机地址(区服列表和 GM 命令均使用此地址)
GAME_HOST=127.0.0.1
# 游戏服基础端口(各区服端口 = GAME_PORT + server_id
GAME_PORT=9000
# GM 命令 HTTP 接口端口
GAME_GM_PORT=111
# ─── 游戏区服数据库mir_actor_s{N},提现时使用)──────────
# 若游戏区服 DB 与账号 DB 在同一 MySQL 实例,可留空(自动复用上方 DB 配置)
GAME_DB_HOST=
GAME_DB_PORT=
GAME_DB_USER=
GAME_DB_PASSWORD=
# ─── 邮件服务(发送验证码)────────────────────────────────
MAIL_FROM=admin@163.com
MAIL_PASSWORD=your_smtp_password
MAIL_HOST=smtp.163.com
MAIL_PORT=465
# 465端口使用SSL填true587/25端口填false
# MAIL_SECURE=true
# ─── LinuxDo OAuth奶昔论坛第三方登录──────────────────
LINUXDO_CLIENT_ID=your_linuxdo_client_id
LINUXDO_CLIENT_SECRET=your_linuxdo_client_secret
# 生产环境请替换为实际域名
LINUXDO_REDIRECT_URI=https://your-domain.com/api/linuxdo/callback