nomadro/.env.example
Eric b845d0bcea Update WeChat virtual pay OfferID and AppKeys; document miniprogram props.
Switch pay signing to sandbox/live AppKey by WX_PAY_ENV and record the product catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-22 10:59:27 +08:00

71 lines
2.7 KiB
Plaintext
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.

# Copy to .env.local — never commit real secrets
# 本地前端直连线上后端(默认 .com;仅本机联调 API 时才改 127.0.0.1:802x)
# WORK_API_URL=https://nomadro.com
# NOTIFY_API_URL=https://nomadro.com
# COFFEE_API_URL=https://nomadro.com
# API_URL=https://nomadro.com
# Admin panel
NOMADRO_ADMIN_PASSWORD=change-me
NOMADRO_ADMIN_SESSION_SECRET=change-me-session
# Optional PocketBase admin token for /admin/users
# PB_ADMIN_TOKEN=
# WeChat miniprogram virtual pay (apps/api)
WX_APPID=wx11f6afc44ea1532f
WX_SECRET=04214ecc910dca4526781c90bae94da1
WX_OFFER_ID=1450705308
WX_APP_KEY=JUN15h8sl5sNQt0awMSrd4Jpv1aSGOYY
WX_SANDBOX_APP_KEY=BQ1DlPjq3PIEzV4UwXQrKxLtqAqlmAEi
# 0=现网 1=沙箱
WX_PAY_ENV=0
# 公众号 userid 档案:读 vip.hackrobot.cn wechat-profile;可选 VIP 运营 token 拉全量列表
# VIP_WEB_API_BASE=https://vip.hackrobot.cn
# VIP_OPS_TOKEN=
# Observability (production)
# NOMADRO_PUBLIC_ORIGIN=https://nomadro.com
# API_URL=https://api.nomadro.com
# 本地前端直连线上配置(浏览器 CORS;与 admin.nomadro.com 同源)
# NEXT_PUBLIC_REMOTE_CONFIG_URL=https://nomadro.com/api/config
# NEXT_PUBLIC_UMAMI_WEBSITE_ID=
# NEXT_PUBLIC_UMAMI_SCRIPT_URL=https://umami.nomadro.cn/script.js
# PostHog(https://github.com/PostHog/posthog · 可自建或 Cloud)
# NEXT_PUBLIC_POSTHOG_KEY=
# NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
# FingerprintJS 开源 visitorId(https://github.com/fingerprintjs/fingerprintjs)默认开;关:remote-config flags.fingerprintEnabled=false
# Google (portal GoogleTags · remote-config flags override)
# NEXT_PUBLIC_SITE_URL=https://nomadro.com
# NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXX
# NEXT_PUBLIC_GOOGLE_ADS_ID=AW-XXXXXXXX
# NEXT_PUBLIC_GOOGLE_ADS_CONVERSION_LABEL=
# NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=
# NEXT_PUBLIC_ADSENSE_CLIENT_ID=ca-pub-XXXXXXXX
# NEXT_PUBLIC_ADSENSE_PUBLISHER_ID=pub-XXXXXXXX
# Google OAuth(admin「用 Google 账号授权」→ 跳转登录)
# GOOGLE_OAUTH_CLIENT_ID=
# GOOGLE_OAUTH_CLIENT_SECRET=
# GOOGLE_OAUTH_REDIRECT_URI=https://api.nomadro.com/api/admin/google/oauth/callback
# GOOGLE_OAUTH_ADMIN_RETURN=https://admin.nomadro.com
# GOOGLE_OAUTH_TOKEN_PATH=/var/www/nomadro-data/google_oauth_tokens.json
# NTFY_BASE_URL=https://ntfy.nomadro.cn
# NTFY_TOPIC=nomadro
# Optional: .com 专用 topic(不设则用 NTFY_TOPIC)
# NTFY_TOPIC_COM=nomadro-com
# NTFY_TOKEN=
# Overseas pay (payjsapi)
# CREEM_API_KEY=
# NOWPAYMENTS_API_KEY=
# Social geo (MapLibre + Photon + PocketBase trips)
# NEXT_PUBLIC_MAP_STYLE_URL=https://tiles.openfreemap.org/styles/dark
# PHOTON_BASE_URL=https://photon.komoot.io
# SOCIAL_GEO_USE_PB=true
# SOCIAL_TRIPS_COLLECTION=social_trips
# PB_URL=http://127.0.0.1:8090
# PB_ADMIN_EMAIL=
# PB_ADMIN_PASSWORD=