pars-h5-2021/src/main/resources/application-prod.yml
liuxingzhi cf21cdb227 ...
2021-11-15 18:37:15 +08:00

54 lines
1.8 KiB
YAML
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.

spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://rm-wz9vza84pe0hb338kbo.mysql.rds.aliyuncs.com:3306/2021_vote?autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=GMT%2B8&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
username: root
password: 'lyg8266@Qiween#com'
initial-size: 5
max-active: 500
min-idle: 10
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: 'SELECT 1'
test-while-idle: true
test-on-borrow: false
test-on-return: false
stat-view-servlet:
enabled: true
url-pattern: /druid/*
#login-username: admin
#login-password: admin
filter:
stat:
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: false
wall:
config:
multi-statement-allow: true
wx:
appid: wx35766a64d73d08a9 #appid
project-id: 20210001000100011 #活动id
api-domain: https://wx.xfhd.net/thirdparty #授权域名
auth-code: fbc35e02df8a4fae9f9f827156acd91e #授权码
auth-scope: snsapi_userinfo #scope
activity:
setting:
begin-date: '2021-11-05 00:00' #投票开始时间
end-date: '2021-11-10 00:00' #投票结束时间
times: 1 #投票次数限制
#阿里云 OSS
#不同的服务器,地址不同
endpoint: oss-cn-hangzhou.aliyuncs.com
keyid: LTAI4G88mJUn3YzWo2eFmxVG
keysecret: iWNQskqvXC7Rm0au2W2u3AGNFEgYMl
#bucket可以在控制台创建也可以使用java代码创建
bucketname: h5buckets
bucketDomain: h5buckets.oss-cn-hangzhou.aliyuncs.com