Files
opsx-licence/.env.example
T
Logan.LiandCursor d4c5637168 fix: 包年改为 Waffo 一次性商品并切 CNY
包年 SKU 换为 PROD_1BIezCi932IbgCzRIV8hcJ,checkout type 统一 onetime。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 16:04:36 +08:00

76 lines
2.4 KiB
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.
# opsx-licence - 环境变量配置模板
# 复制此文件为 .env 并根据需要修改
# Docker: cp .env.example .env && ./run.sh docker up
# ============================================
# 后端配置 (backend)
# ============================================
# 服务器端口
PORT=9001
# 运行模式: debug / release(生产 / Docker 请用 release)
GIN_MODE=release
# JWT 密钥(生产环境必须修改!)
JWT_SECRET=your-super-secret-key-change-this-in-production
# 数据库配置
# 可选: sqlite / mysql / postgres
DB_DRIVER=sqlite
# 本地开发可用相对路径;Docker Compose 会覆盖为 /data/db.sqlite3
DB_NAME=db.sqlite3
# MySQL 配置(使用 mysql 时填写)
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_USER=root
# DB_PASSWORD=your-password
# DB_NAME=opsx_licence
# PostgreSQL 配置(使用 postgres 时填写)
# DB_HOST=127.0.0.1
# DB_PORT=5432
# DB_USER=postgres
# DB_PASSWORD=your-password
# DB_NAME=opsx_licence
# CORS 配置(多个用逗号分隔)
# CORS_ORIGINS=http://localhost:5181,http://127.0.0.1:5181
# ============================================
# Waffo 支付(OpsXShell 收银台 · pancake.waffo.ai)
# ============================================
# 店铺: https://pancake.waffo.ai/store/opsxshell-pwsi6m4n
# 包年一次性: PROD_1BIezCi932IbgCzRIV8hcJ (type=onetime)
# 永久买断: PROD_0pcnzzT4nalEkkcdyIUoD5 (type=onetime)
# 勿设置单一 WAFFO_CHECKOUT_URL,否则无法按档位分流商品
WAFFO_STORE_SLUG=opsxshell-pwsi6m4n
WAFFO_PRODUCT_ID=PROD_0pcnzzT4nalEkkcdyIUoD5
WAFFO_PRODUCT_ID_YEARLY=PROD_1BIezCi932IbgCzRIV8hcJ
WAFFO_PRODUCT_ID_PERPETUAL=PROD_0pcnzzT4nalEkkcdyIUoD5
WAFFO_CURRENCY=CNY
# test | live(test 时自动附加 test=true)
WAFFO_ENVIRONMENT=test
# 支付成功回跳(桌面端 deep link;CreateOrder/Checkout 的 return_url 可覆盖)
SUCCESS_URL=opsxshell://pro/activated
# PEM 私钥仅保存在服务端,切勿下发到客户端或写入仓库
# WAFFO_PRIVATE_KEY_PEM=
# ============================================
# Docker Compose
# ============================================
# 宿主机映射端口(容器内固定 9001)
HOST_PORT=9001
VERSION=latest
# ============================================
# 前端配置 (frontend)
# ============================================
# 开发环境 API 地址
VITE_API_BASE_URL=http://localhost:9001/api
# 生产环境 API 地址(构建时注入)
# VITE_APP_BASE_API=/api