Files
affiliate_dash/.env.example
T
yml2213 e4d0a71963 支持 .env 配置,并完善源头对接文档与测试订单
- 增加 .env.example 与 godotenv 加载,start.sh 自动读环境变量
- 重写发给源头的开放接口对接文档
- 订单页支持创建测试订单(可直接已支付并复制店铺订单号)
2026-07-20 16:19:57 +08:00

24 lines
805 B
Bash
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.
# ========== 后端(Go==========
# 服务端口
PORT=8080
# Gin 模式:debug / release
GIN_MODE=debug
# SQLite 数据库路径(相对 backend 工作目录,或写绝对路径)
DB_PATH=data/app.db
# JWT 密钥(生产务必更换)
JWT_SECRET=affiliate-dash-dev-secret-change-me
# 皮肤源头开放接口鉴权
# X-Api-Key 标识(可给对接方)
OPEN_API_KEY=sk_source_dev_key_change_me
# HMAC 签名密钥(仅服务端与对接方本地使用,不要放前端)
OPEN_API_SECRET=sk_source_dev_secret_change_me
# 签名时间戳允许偏差(秒)
OPEN_SIGN_SKEW=300
# ========== 前端(Vite / 一键启动)==========
# 前端开发端口
FRONTEND_PORT=5173
# 开发代理到后端地址(可选,默认 http://localhost:8080
VITE_API_PROXY_TARGET=http://localhost:8080