|
| 1 | +Version: v1.0.0 # 版本 |
| 2 | +Env: develop # 环境 |
| 3 | +Region: global |
| 4 | +Server: |
| 5 | + Name: PowerX后台系统 # 服务器名称 |
| 6 | + Host: 0.0.0.0 # 服务器地址 |
| 7 | + Port: 8888 # 服务器端口 |
| 8 | + Timeout: 30000 # 超时时间 |
| 9 | + |
| 10 | +Cors: |
| 11 | + AllowAll: true |
| 12 | + SupportedDomain: [] |
| 13 | +# SupportedDomain: |
| 14 | +# - localhost |
| 15 | +# - api.powerx.cn |
| 16 | + |
| 17 | +Log: |
| 18 | + Console: true |
| 19 | + Logx: |
| 20 | + ServiceName: powerx |
| 21 | + Mode: file |
| 22 | + Encoding: plain |
| 23 | + TimeFormat: "2006-01-02 15:04:05" |
| 24 | + Path: logs |
| 25 | + Level: info |
| 26 | + MaxContentLength: 10485760 |
| 27 | + Compress: false |
| 28 | + Stat: false |
| 29 | + KeepDays: 30 |
| 30 | + StackCooldownMillis: 100 |
| 31 | + MaxBackups: 0 |
| 32 | + MaxSize: 0 |
| 33 | + Rotation: daily # `json:",default=daily,options=[daily,size]"` |
| 34 | + |
| 35 | + Loki: |
| 36 | + Enabled: true |
| 37 | + URL: http://localhost:3100/loki/api/v1/push |
| 38 | + Labels: |
| 39 | + app: powerx |
| 40 | + env: develop |
| 41 | + |
| 42 | +Root: |
| 43 | + Account: root # 管理员账号 |
| 44 | + Password: root # 管理员密码 |
| 45 | + Name: 超级管理员 # 管理员名称 |
| 46 | + |
| 47 | +JWT: |
| 48 | + JWTSecret: dev # Dashboard JWT密钥 |
| 49 | + MPJWTSecret: dev_mp # 小程序 JWT密钥 |
| 50 | + WebJWTSecret: dev_web # Web JWT密钥 |
| 51 | + |
| 52 | +OpenAPI: |
| 53 | + platforms: |
| 54 | + # 访问PowerX OpenAPI的restful 配置 |
| 55 | + BrainX: |
| 56 | + AccessKey: "key_power_x" |
| 57 | + SecretKey: "123456789" |
| 58 | + |
| 59 | + providers: |
| 60 | + # 访问BrainX OpenAPI的restful 配置 |
| 61 | + BrainX: |
| 62 | + BaseUrl: "http://127.0.0.1:8000/openapi/v1" |
| 63 | + AccessKey: "key_brain_x" |
| 64 | + SecretKey: '987654321' |
| 65 | + ProviderName: 'powerx' |
| 66 | + |
| 67 | +Casbin: |
| 68 | + SelfHosted: true # 是否使用自己的Casbin服务 |
| 69 | + |
| 70 | +PowerXDatabase: |
| 71 | + # 数据驱动 |
| 72 | + Driver: postgres # 我们主要使用基于Gorm+postgres |
| 73 | +# Driver: mysql # 可以连接,但是我们未基于mysql来开发应用。 |
| 74 | + |
| 75 | + # 数据库连接信息 |
| 76 | + DSN: host=localhost user=powerx password=powerxpw dbname=powerx port=5432 sslmode=disable TimeZone=UTC search_path=public |
| 77 | + |
| 78 | + # Schema |
| 79 | + Schema: public |
| 80 | + |
| 81 | + # 数据库是否初始化定制的种子数据 |
| 82 | + SeedCommerceData: false |
| 83 | + SeedDepartment: true |
| 84 | + |
| 85 | +RedisBase: |
| 86 | + Host: 127.0.0.1:6379 |
| 87 | + Username: |
| 88 | + Password: |
| 89 | + DB: 0 |
| 90 | + |
| 91 | +WechatOA: |
| 92 | + AppId: wx93607xxxxxxxxxx # 微信公众号AppID |
| 93 | + Secret: 6ZwxxxtFouxxxxxxxxxxxxxxxxxxx0tgXYw4oh7KI # 微信公众号Secret |
| 94 | + AESKey: PBcwPOp0e6tFou # 微信公众号AES密钥 |
| 95 | + OAuth: |
| 96 | + Callback: "https://wechat-oa.artisan-cloud.com/callback" |
| 97 | + Scopes: [ ] |
| 98 | + HttpDebug: true # 是否启用HTTP调试模式 |
| 99 | + Debug: false # 是否启用微信hint的调试模式 |
| 100 | + |
| 101 | +WechatPay: |
| 102 | + AppId: wx93607xxxxxxxxxx # 微信支付AppID |
| 103 | + AESKey: PBcwPOp0e6tFou # 微信支付AES密钥 |
| 104 | + MchId: "1626253240" # 商户号 |
| 105 | + MchApiV3Key: # 商户API密钥 |
| 106 | + Key: # 商户支付密钥 |
| 107 | + CertPath: # 商户证书路径 |
| 108 | + KeyPath: # 商户证书密钥路径 |
| 109 | + RSAPublicKeyPath: # 微信支付平台RSA公钥路径 |
| 110 | + SerialNo: # 微信支付平台证书序列号 |
| 111 | + WechatPaySerial: # 微信支付序列号 |
| 112 | + NotifyUrl: # 微信支付通知URL |
| 113 | + HttpDebug: true # 是否启用HTTP调试模式 |
| 114 | + Debug: false # 是否启用微信hint的调试模式 |
| 115 | + |
| 116 | +WechatMP: |
| 117 | + AppId: wx93607xxxxxxxxxx # 微信小程序AppID |
| 118 | + Secret: 188c70xxxxxxxxxx70xxxxxxxxxx56c4 # 微信小程序Secret |
| 119 | + AESKey: PBcwPOp0e6tFou # 微信小程序AES密钥 |
| 120 | + OAuth: |
| 121 | + Callback: "https://wechat-mp.artisan-cloud.com/callback" |
| 122 | + Scopes: [ ] |
| 123 | + HttpDebug: true # 是否启用HTTP调试模式 |
| 124 | + Debug: false # 是否启用微信hint的调试模式 |
| 125 | + |
| 126 | +WeCom: |
| 127 | + CropId: wx93607xxxxxxxxxx # 企业微信CropID |
| 128 | + AgentId: 1000005 # 企业微信应用AgentID |
| 129 | + Secret: 6ZwxxxtFouxxxxxxxxxxxxxxxxxxx0tgXYw4oh7KI # 企业微信应用Secret |
| 130 | + # APP |
| 131 | + Token: tEBuofHfxxxxxxxxxxxxBPTq9K # 企业微信应用的Token,用于处理接收到的消息 |
| 132 | + EncodingAESKey: Gv3T4dP5QBDxxxxxxxxxxxxxxxxxxxxxxxc2vwlmUhY # 企业微信应用的 EncodingAESKey,用于加密/解密接收和发送的消息 |
| 133 | + OAuth: |
| 134 | + Callback: "https://*/v1/message/callback" |
| 135 | + Scopes: [] |
| 136 | + # 通讯录 |
| 137 | +# Token: tEBuofHfxxxxxxxxxxxxBPTq9K # 企业微信应用的Token,用于处理接收到的消息 |
| 138 | +# EncodingAESKey: Gv3T4dP5QBDxxxxxxxxxxxxxxxxxxxxxxxc2vwlmUhY # 企业微信应用的 EncodingAESKey,用于加密/解密接收和发送的消息 |
| 139 | + |
| 140 | + # 上下游 |
| 141 | +# Token: tEBuofHfxxxxxxxxxxxxBPTq9K # 企业微信应用的Token,用于处理接收到的消息 |
| 142 | +# EncodingAESKey: Gv3T4dP5QBDxxxxxxxxxxxxxxxxxxxxxxxc2vwlmUhY # 企业微信应用的 EncodingAESKey,用于加密/解密接收和发送的消息 |
| 143 | + |
| 144 | + HttpDebug: true # 是否启用HTTP调试模式 |
| 145 | + Debug: false # 是否启用微信hint的调试模式 |
| 146 | + |
| 147 | +MediaResource: |
| 148 | + LocalStorage: |
| 149 | + StoragePath: |
| 150 | + OSS: |
| 151 | + Enable: true |
| 152 | + Minio: |
| 153 | + Endpoint: localhost:9001 |
| 154 | + Credentials: |
| 155 | + AccessKey: powerx |
| 156 | + SecretKey: powerxpwd |
| 157 | + useSSL: false |
0 commit comments