Files
1818web-hoduan/env.example
2025-11-14 17:41:15 +08:00

54 lines
1.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.

# 环境变量配置示例文件
# 复制此文件为 .env 并根据实际情况修改配置
# 微信支付配置
WX_APPID=wx514ee01702ec6672
WX_MCH_ID=1723398705
WX_MCH_KEY=53e853a5d280458fa753e853a5d280458fa7
WX_TRADE_TYPE=MWEB
WX_NOTIFY_URL=https://www.1818ai.com/user/pay/callback
# 微信公众号配置
WX_MP_APPID=your_mp_appid
WX_MP_SECRET=your_mp_secret
WX_MP_TOKEN=dora1818ai2024
WX_MP_AES_KEY=y5iRXsfsJiUU0Z4PQPHhQ8uezCNkhM4nX3PpLidm8dI
# 微信支付证书路径(使用绝对路径)
# Windows 示例
WX_CERT_URL=C:\Users\admin\Desktop\1818AI_admin\1818_user_server\certs\wechat\apiclient_cert.p12
# Linux/Mac 示例
# WX_CERT_URL=/path/to/project/certs/wechat/apiclient_cert.p12
# 数据库配置
DB_URL=jdbc:mysql://localhost:3306/1818ai_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&createDatabaseIfNotExist=true
DB_USERNAME=root
DB_PASSWORD=1234
# Redis配置
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DATABASE=0
# 短信配置
SMS_ACCESS_KEY_ID=LTAI5t68do3qVXx5Rufugt3X
SMS_ACCESS_KEY_SECRET=2vD9ToIff49Vph4JQXsn0Cy8nXQfzA
SMS_SIGN_NAME=星洋智慧
SMS_VERIFY_TEMPLATE_CODE=SMS_491985030
# 阿里云OSS配置
OSS_ENDPOINT=https://oss-cn-hangzhou.aliyuncs.com
OSS_BUCKET_NAME=oss-1818ai-user-img
OSS_REGION=cn-hangzhou
OSS_ACCESS_KEY_ID=LTAI5t68do3qVXx5Rufugt3X
OSS_ACCESS_KEY_SECRET=2vD9ToIff49Vph4JQXsn0Cy8nXQfzA
# 注意阿里云身份认证服务配置已移至application.yml文件
# 如需修改配置请直接编辑application.yml中的aliyun.cloudauth部分
# 重要提醒:
# 1. 请确保AccessKey具有AliyunCloudAuthFullAccess权限
# 2. 或者具有cloudauth:Id2MetaStandardVerify权限
# 3. 确保已在阿里云控制台开通实人认证服务