This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
DHEnry 9dfc96cd67 feat: markdown chat, nested quotes and read receipts
Move the web/server app under server/, add Markdown composer and rendering, cursor-insert image/file uploads, nested quote viewer, group read receipt dialog, and link Markdown attachments to sent messages.
2026-10-25 19:14:34 +08:00

38 lines
1.1 KiB
Bash
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.
NODE_ENV=development
PORT=3000
HOST=0.0.0.0
# 本机 MySQL 8.0(服务名 MySQL80,端口 3306)
DATABASE_URL="mysql://chat_app:ChatApp_7Kx9mQ2vL8nR4tZ@127.0.0.1:3306/chat"
SHADOW_DATABASE_URL="mysql://chat_app:ChatApp_7Kx9mQ2vL8nR4tZ@127.0.0.1:3306/chat_shadow"
# 生产环境务必替换为随机 64 位字符串
JWT_SECRET="dev-only-change-me-8f3a1c9e5b7d2f4a6c8e0b1d3f5a7c9e"
# 对外访问地址:局域网/域名访问时改成实际地址,例如 http://192.168.3.4:5173
PUBLIC_ORIGIN="http://localhost:5173"
# Cap 人机验证密钥,生产环境务必替换
CAP_SECRET="dev-cap-secret-change-me-0123456789"
STORAGE_ROOT="../../storage"
MAX_UPLOAD_MB=20
# console = 邮件内容打印到控制台(开发);smtp = 走 SMTP
MAIL_MODE=console
# MAIL_MODE=smtp 时填写
SMTP_HOST=""
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=""
SMTP_PASS=""
SMTP_FROM=""
# 站点品牌(前端启动时通过 /api/config 读取)
SITE_NAME="Chat"
# 留空则使用内置 /favicon.png;也可填 /logo.png 或完整 URL
SITE_LOGO_URL="/favicon.png"
# Passkey / WebAuthn(留空则从 PUBLIC_ORIGIN 自动推导)
WEBAUTHN_RP_ID=""
WEBAUTHN_RP_NAME=""