84 lines
3.0 KiB
Properties
84 lines
3.0 KiB
Properties
|
|
server.port=8080
|
||
|
|
endpoints.enabled=false
|
||
|
|
server.forward-headers-strategy=framework
|
||
|
|
#custom corss-domain headers, split by ','
|
||
|
|
cross.domain.headers=
|
||
|
|
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
||
|
|
|
||
|
|
base.package={{ .groupId }}
|
||
|
|
# datasource
|
||
|
|
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||
|
|
spring.datasource.username=${DB_USER:{{ .dbUser }}}
|
||
|
|
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
|
||
|
|
{{- if eq .dbType "mysql" }}
|
||
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||
|
|
{{- else if eq .dbType "postgresql" }}
|
||
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||
|
|
{{- end }}
|
||
|
|
spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
|
||
|
|
spring.datasource.tomcat.max-age=3600000
|
||
|
|
spring.jpa.open-in-view=false
|
||
|
|
|
||
|
|
# flyway
|
||
|
|
spring.flyway.enabled=false
|
||
|
|
spring.flyway.outOfOrder=true
|
||
|
|
spring.flyway.baselineOnMigrate=true
|
||
|
|
|
||
|
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||
|
|
|
||
|
|
#rocketmq
|
||
|
|
rocketmq.name-server=${ROCKETMQ_HOST:{{ .rocketmq_address }}}
|
||
|
|
rocketmq.topic=${DB_DATABASE:{{ .rocketmq_topic }}}
|
||
|
|
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
|
||
|
|
rocketmq.tag=*
|
||
|
|
rocketmq.producer.group={{ .rocketmq_producerGroup }}
|
||
|
|
|
||
|
|
#elasticsearch
|
||
|
|
essql.hosts=${OPENSEARCH_HOST:{{ .elasticsearch_host }}}
|
||
|
|
essql.port={{ .elasticsearch_port }}
|
||
|
|
essql.username=${OPENSEARCH_USER:{{ .elasticsearch_username }}}
|
||
|
|
essql.password=${OPENSEARCH_PASSWORD:{{ .elasticsearch_password }}}
|
||
|
|
essql.scheme=${OPENSEARCH_SCHEME:{{ .elasticsearch_scheme }}}
|
||
|
|
|
||
|
|
#get user config
|
||
|
|
get_user_uri={}
|
||
|
|
|
||
|
|
#request header
|
||
|
|
out.request.headers=
|
||
|
|
#response header
|
||
|
|
out.response.headers=Content-Type
|
||
|
|
#eg:https://vsstudio.teitui.com
|
||
|
|
out.host=
|
||
|
|
|
||
|
|
#xxljob
|
||
|
|
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS:{{ .xxljob_address }}}
|
||
|
|
xxl.job.executor.port=9999
|
||
|
|
xxl.job.executor.appname={{ .artifactId }}
|
||
|
|
xxl.job.executor.title={{ .artifactId }}
|
||
|
|
xxl.job.accessToken={{ .xxljob_accessToken }}
|
||
|
|
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:{{ .xxljob_username }}}
|
||
|
|
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:{{ .xxljob_password }}}
|
||
|
|
|
||
|
|
#redis
|
||
|
|
redis-config.pool.hostAndPort=${REDIS_HOST:{{ .redis_address }}}
|
||
|
|
redis-config.pool.password=${REDIS_PASSWORD:{{ .redis_password }}}
|
||
|
|
redis-config.pool.maxTotal={{ .redis_maxTotal }}
|
||
|
|
redis-config.pool.maxIdle={{ .redis_maxIdle }}
|
||
|
|
redis-config.pool.minIdle={{ .redis_minIdle }}
|
||
|
|
redis-config.pool.maxWaitMillis=10000
|
||
|
|
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
||
|
|
redis-config.pool.testOnBorrow=true
|
||
|
|
redis-config.pool.testOnReturn=true
|
||
|
|
redis-config.pool.testWhileIdle=true
|
||
|
|
redis-config.pool.timeBetweenEvictionRunsMillis=30000
|
||
|
|
redis-config.pool.minEvictableIdleTimeMillis=1800000
|
||
|
|
redis-config.pool.numTestsPerEvictionRun=3
|
||
|
|
redis-config.pool.blockWhenExhausted=true
|
||
|
|
redis-config.pool.jmxEnabled=true
|
||
|
|
redis-config.pool.lifo=true
|
||
|
|
|
||
|
|
#flow config
|
||
|
|
liteflow.rule-source=el_json:com.vs.flow.FlowRuleSource
|
||
|
|
liteflow.print-banner=false
|
||
|
|
liteflow.monitor.enable-log=true
|