[Octopus] modify project to SpringBoot version
This commit is contained in:
161
server/src/main/resources/application.yml
Normal file
161
server/src/main/resources/application.yml
Normal file
@@ -0,0 +1,161 @@
|
||||
server:
|
||||
port: 9999
|
||||
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true
|
||||
allow-bean-definition-overriding: true
|
||||
rabbitmq:
|
||||
host: 150.230.198.103
|
||||
port: 20672
|
||||
username: boge
|
||||
password: boge14@Level5
|
||||
virtual-host: /
|
||||
listener:
|
||||
simple:
|
||||
retry:
|
||||
# ack failed will reentrant the Rabbit Listener
|
||||
max-attempts: 2
|
||||
enabled: true
|
||||
# retry interval unit ms
|
||||
max-interval: 65000
|
||||
initial-interval: 65000
|
||||
redis:
|
||||
host: 146.56.147.12
|
||||
port: 21370
|
||||
database: 0
|
||||
password: boge14@Level5
|
||||
# cluster:
|
||||
# nodes:
|
||||
# - 43.154.83.213:21370
|
||||
# - 43.154.83.213:21371
|
||||
# - 43.154.83.213:21372
|
||||
# - 43.154.83.213:21373
|
||||
# - 43.154.83.213:21374
|
||||
# - 43.154.83.213:21375
|
||||
# # 获取失败 最大重定向次数
|
||||
# max-redirects: 3
|
||||
# timeout: 50000
|
||||
#如果用以前的jedis,可以把下面的lettuce换成jedis即可
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池最大连接数默认值为8
|
||||
max-active: 16
|
||||
# 连接池最大阻塞时间(使用负值表示没有限制)默认值为-1
|
||||
max-wait: -1
|
||||
# 连接池中最大空闲连接数默认值为8
|
||||
max-idle: 10
|
||||
# 连接池中的最小空闲连接数,默认值为0
|
||||
min-idle: 10
|
||||
time-between-eviction-runs: 50000
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://140.238.63.37:21306/wdd_server?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: boge14@Level5
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
hikari:
|
||||
minimum-idle: 3
|
||||
# 空闲连接存活最大时间,默认600000(10分钟)
|
||||
idle-timeout: 180000
|
||||
# 连接池最大连接数,默认是10
|
||||
maximum-pool-size: 5
|
||||
# 此属性控制从池返回的连接的默认自动提交行为,默认值:true
|
||||
auto-commit: true
|
||||
connection-test-query: SELECT 1
|
||||
# 最大文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 500MB
|
||||
max-request-size: 500MB
|
||||
|
||||
mybatis-plus:
|
||||
type-aliases-package: io.wdd.server.beans.po
|
||||
global-config:
|
||||
db-column-underline: true
|
||||
db-config:
|
||||
# modify ethe id strategy
|
||||
id-type: assign_id
|
||||
# logic delete field globally
|
||||
logicDeleteField: isDelete
|
||||
logic-not-delete-value: 0
|
||||
logic-delete-value: 1
|
||||
banner: false
|
||||
configuration:
|
||||
# 希望知道所有的sql是怎么执行的, 配置输出日志
|
||||
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
||||
# 数据库下划线--实体类也是下划线 需要为false
|
||||
map-underscore-to-camel-case: true
|
||||
# 一级缓存的 缓存级别默认为 session,如果要关闭一级缓存可以设置为 statement
|
||||
local-cache-scope: session
|
||||
# 是否开启二级缓存
|
||||
cache-enabled: false
|
||||
# 默认地址为 classpath*:/mapper/**/*.xml
|
||||
# mapper-locations: classpath*:/real-mappers/**/*.xml
|
||||
|
||||
octopus:
|
||||
message:
|
||||
# agent boot up default common exchange
|
||||
init_exchange: InitExchange
|
||||
# server will send message to agent using this common queue
|
||||
init_to_server: InitToServer
|
||||
# agent boot up default common exchange routing key
|
||||
init_to_server_key: InitToServerKey
|
||||
# server will receive message from agent using this common queue
|
||||
init_from_server: InitFromServer
|
||||
# agent boot up default common exchange routing key
|
||||
init_from_server_key: InitFromServerKey
|
||||
# initialization register time out (unit ms) default is 5 min
|
||||
init_ttl: "3000000"
|
||||
# Octopus Exchange Name == server comunicate with agent
|
||||
octopus_exchange: OctopusExchange
|
||||
# Octopus Message To Server == all agent send info to server queue and topic
|
||||
octopus_to_server: OctopusToServer
|
||||
executor:
|
||||
name: executor-functions
|
||||
status:
|
||||
name: octopus-agent
|
||||
healthy:
|
||||
type: cron
|
||||
cron: 10 */1 * * * ? *
|
||||
start-delay: 30
|
||||
metric:
|
||||
pinch: 20
|
||||
|
||||
oss:
|
||||
# 这里只是因为需要一个层级,不一定下面的都是oracle
|
||||
oracle:
|
||||
seoul1:
|
||||
namespace: cnk8d6fazu16
|
||||
region: ap-seoul-1
|
||||
key: aed62d24d85e2da809ce02bf272420ba4ed74820
|
||||
secret: rQdEcn69K049+JkA1IGoQmC1k8zma8zfWvZvVS0h144=
|
||||
capacity: 10737418240
|
||||
seoul2:
|
||||
namespace: cncvl8ro2rbf
|
||||
region: ap-seoul-1
|
||||
key: 9e413c6e66269bc65d7ec951d93ba9c6a9781f6e
|
||||
secret: dkXD7PysjrhsTKfNIbKupUmtxdfOvYCyLXf0MXa4hnU=
|
||||
capacity: 10737418240
|
||||
tokyo1:
|
||||
namespace: nrjcs6lwr9vy
|
||||
region: ap-tokyo-1
|
||||
key: 0584c323d6c8d24cc2fc8c2d716a4ea35bb99ae6
|
||||
secret: +xicO9obeqzC5a/WY1rXvl5pMWSWbVIpMt3Qv691NtU=
|
||||
capacity: 10737418240
|
||||
phoenix1:
|
||||
namespace: axqr6x6t48wm
|
||||
region: us-phoenix-1
|
||||
key: e87a121f1548b244c7bd649a1f0ca35195d46cf2
|
||||
secret: uT+NIgJiKPjSaPT8EVUw3xbLSCv/CFMFuebVauznafk=
|
||||
capacity: 10737418240
|
||||
london1:
|
||||
namespace: lrmzslyt8jzs
|
||||
region: uk-london-1
|
||||
key: 57671886f9f1bcc5ac7235b5a0e6123f5ca271b3
|
||||
secret: ukWae6TXjID2Wqxh+7mAPAf4busZPGzwAh/WDKZ5MOQ=
|
||||
capacity: 10737418240
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user