middleware_agent/src/main/resources/application.properties

102 lines
3.6 KiB
Properties

# Server Configuration
server.port=18080
server.servlet.context-path=/mw/agent
server.compression.enabled=true
server.compression.mime-types=application/json
server.compression.min-response-size=1KB
# Spring Web Configuration
spring.web.resources.add-mappings=false
# Spring DataSource Configuration
spring.datasource.url=jdbc:h2:file:./src/main/resources/db/agent;MODE=MySQL;DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
# enable H2 console
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
# server config
spring.h2.server.enable=true
spring.h2.server.port=18090
# auto init
spring.sql.init.mode=always
spring.sql.init.schema-locations=classpath:sql/schema.sql
# Mybatis Configuration
#mybatis.mapper-locations=classpath:mappers/*.xml
#mybatis.type-aliases-package=com.cmcc.magent.pojo.entry
#mybatis.configuration.default-enum-type-handler=com.cmcc.magent.common.DataBaseEnumHandler
mybatis-flex.global-config.print-banner=false
# Spring Jackson Configuration
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss.SSS
spring.jackson.timezone=GMT+8
spring.jackson.default-property-inclusion=non_null
spring.jackson.mapper.default-view-inclusion=true
spring.jackson.deserialization.fail-on-unknown-properties=false
# Swagger-UI Custom Path
springdoc.swagger-ui.path=/swagger-ui.html
# OSS Configuration
#gzs.common.oss.enabled=true
gzs.common.oss.config.default.accessKey=AQB56A45GU5Z5L9BNY00
gzs.common.oss.config.default.secretKey=VnGOh2eQO8Ci0reRh102nxMmGvcNVsOGZbeZBspq
gzs.common.oss.config.default.endpoint=https://oss9.sddc.svc.cluster.local
gzs.common.oss.config.default.accessUrl=https://oss9.sddc.svc.cluster.local
gzs.common.oss.config.default.bucketName=middleware
# common :
common.token-expired-of-seconds=600
common.allow-passwd-retry-times=3
common.show-sql-command=false
common.res-sampling-msencond=10000
common.locale=zh_CN
common.data-root-directory=/opt/middleware-agent/data
common.async-deployment=true
# protocol:
protocol.check-timestamp=true
protocol.timeout-of-seconds=600
protocol.crypto-type=0
#crypto-key: 12354
# Platform Service
# Manager Platform URL
service.platform-url=https://172.21.44.35:50443/mw/core
# APPID
service.platform-appid=appid
# cluster name
service.platform-cluster=cluster
# HTTP Request timeout of seconds
service.request-timeout=5
# threads pool
thread.core-pool-size=5
thread.max-pool-size=10
thread.queue-capacity=25
thread.name-prefix=Async-
# Can support profiles, databases, or remote
gzs.sign.client-details-enabled=true
gzs.sign.client-details.'yj-xx-1234567'=1234567
# Permission: Specifies the interface corresponding to client_id. If the default value is empty, there is no restriction.
gzs.sign.perm.'yj-yy-1234567'=/xx/xx,/xx/yy
# default can be configured in the rule-group, for example, gzs.sign.rule-.yj.mode =0
# [Optional] 1: strict mode, 0: common mode (default)
gzs.sign.rule.default.mode=0
# [Optional] Mandatory check list (In any mode, the following interfaces require check)
gzs.sign.rule.default.required-list=POST:/xxx/xx,*:/xxx/yy/**
# [Optional] Optional check list (In any mode, the following interfaces can be checked)
gzs.sign.rule.default.optional-list=GET:/xxx/xx,*:/xxx/yy/*
# [Optional] If base64 encoding is used, you can configure whether base64 encoding for url security is required in the signature algorithm based on different client_id. The default value is true
#gzs.sign.base64-url-safe.def = true
#gzs.sign.base64-url-safe.'as-xx-1234567' = false