nomadro/.env.example
Eric de75f41816 Update WeChat miniprogram AppID and AppSecret to wx11f6afc44ea1532f.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-22 08:58:53 +08:00

67 lines
2.5 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.

# 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_APPSECRET=04214ecc910dca4526781c90bae94da1
WX_OFFER_ID=1450642200
WX_SANDBOX_APPKEY=0wB3HV3sfKVTEgomZ6BIbgsN8Mlbv5Bn
WX_LIVE_APPKEY=CBi5tdkkSWuvkDvWJNnSjrGmeYE3xlsg
# 1=sandbox 0=live
WX_PAY_ENV=1
# 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=