Files
gitlab-instance-0a899031_pa…/.env.example
2026-03-10 07:05:35 -05:00

44 lines
1.7 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.
# ========== 本地调试 ==========
# BASE_URL 需为 ZPAY 可访问的回调地址。本地调试时 ZPAY 无法回调 localhost/内网,
# 可用 ngrok 等隧道BASE_URL=https://xxx.ngrok.io
# 或直接使用生产地址测试回调(需 payjsapi 已部署到公网)
# nomadvip/digital/cnomadcna/nomadlms 的 zpay_notify 均依赖此地址,未正确配置会导致 PocketBase/Memos 不更新
# 本地调试ngrok 暴露 8700 后设置 BASE_URL=https://xxx.ngrok.io
# 线上部署BASE_URL=https://api.hackrobot.cn
# ========== 生产部署Ubuntu 等)==========
# 线上部署必须正确配置,否则会显示「支付失败」:
# 1. BASE_URL 必须为 payjsapi 公网地址ZPAY 需能访问此地址做异步回调
# 错误示例http://127.0.0.1:8700、http://localhostZPAY 无法访问)
# 正确示例https://api.hackrobot.cn域名需解析到本机并配置 nginx 反向代理)
# 2. 服务器需能访问 zpayz.cn检查防火墙、DNS可访问 /health?check_zpay=1 自检
BASE_URL=https://api.hackrobot.cn
# 支付渠道zpay已替代 xorpay| xorpay
PAYMENT_PROVIDER=zpay
# XorPay
XORPAY_AID=8220
XORPAY_SECRET=your_secret
# ZPAY网关: https://zpayz.cn/
ZPAY_PID=2025121809351743
ZPAY_KEY=tpEi7wWIWI2kXiYVTpIG6j7it0mjVW89
# PocketBase
PB_URL=https://pocketbase.hackrobot.cn
PB_ADMIN_EMAIL=your@email.com
PB_ADMIN_PASSWORD=your_password
# Memos仅 nomadvip 使用)
MEMOS_API=https://qun.hackrobot.cn/api/v1/users
MEMOS_TOKEN=your_token
# MinIO 对象存储(可选)
MINIO_ENDPOINT=minioweb.hackrobot.cn
MINIO_PORT=443
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
MINIO_BUCKET=hackrobot
MINIO_UPLOAD_PREFIX=joins