2019-05-22 08:18:41 +00:00
|
|
|
# spring
|
|
|
|
server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos}
|
|
|
|
server.contextPath=/nacos
|
2020-05-28 02:32:47 +00:00
|
|
|
server.port=${NACOS_APPLICATION_PORT:8848}
|
2019-05-22 08:18:41 +00:00
|
|
|
spring.datasource.platform=${SPRING_DATASOURCE_PLATFORM:""}
|
|
|
|
nacos.cmdb.dumpTaskInterval=3600
|
|
|
|
nacos.cmdb.eventTaskInterval=10
|
|
|
|
nacos.cmdb.labelTaskInterval=300
|
|
|
|
nacos.cmdb.loadDataAtStart=false
|
2020-02-16 06:55:11 +00:00
|
|
|
db.num=${MYSQL_DATABASE_NUM:1}
|
2021-05-16 10:44:43 +00:00
|
|
|
db.url.0=jdbc:mysql://${MYSQL_SERVICE_HOST}:${MYSQL_SERVICE_PORT:3306}/${MYSQL_SERVICE_DB_NAME}?${MYSQL_SERVICE_DB_PARAM:characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false}
|
|
|
|
db.url.1=jdbc:mysql://${MYSQL_SERVICE_HOST}:${MYSQL_SERVICE_PORT:3306}/${MYSQL_SERVICE_DB_NAME}?${MYSQL_SERVICE_DB_PARAM:characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false}
|
2020-02-16 06:55:11 +00:00
|
|
|
db.user=${MYSQL_SERVICE_USER}
|
|
|
|
db.password=${MYSQL_SERVICE_PASSWORD}
|
2020-03-04 12:10:07 +00:00
|
|
|
### The auth system to use, currently only 'nacos' is supported:
|
|
|
|
nacos.core.auth.system.type=${NACOS_AUTH_SYSTEM_TYPE:nacos}
|
|
|
|
|
|
|
|
|
|
|
|
### The token expiration in seconds:
|
|
|
|
nacos.core.auth.default.token.expire.seconds=${NACOS_AUTH_TOKEN_EXPIRE_SECONDS:18000}
|
|
|
|
|
|
|
|
### The default token:
|
|
|
|
nacos.core.auth.default.token.secret.key=${NACOS_AUTH_TOKEN:SecretKey012345678901234567890123456789012345678901234567890123456789}
|
|
|
|
|
|
|
|
### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
|
|
|
|
nacos.core.auth.caching.enabled=${NACOS_AUTH_CACHE_ENABLE:false}
|
2021-01-15 17:16:03 +00:00
|
|
|
nacos.core.auth.enable.userAgentAuthWhite=${NACOS_AUTH_USER_AGENT_AUTH_WHITE_ENABLE:false}
|
|
|
|
nacos.core.auth.server.identity.key=${NACOS_AUTH_IDENTITY_KEY:serverIdentity}
|
|
|
|
nacos.core.auth.server.identity.value=${NACOS_AUTH_IDENTITY_VALUE:security}
|
2019-07-07 15:42:18 +00:00
|
|
|
server.tomcat.accesslog.enabled=${TOMCAT_ACCESSLOG_ENABLED:false}
|
2019-05-22 08:18:41 +00:00
|
|
|
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D
|
|
|
|
# default current work dir
|
|
|
|
server.tomcat.basedir=
|
|
|
|
## spring security config
|
|
|
|
### turn off security
|
2021-01-15 17:16:03 +00:00
|
|
|
nacos.security.ignore.urls=${NACOS_SECURITY_IGNORE_URLS:/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**}
|
2019-05-22 08:18:41 +00:00
|
|
|
# metrics for elastic search
|
2019-07-07 15:42:18 +00:00
|
|
|
management.metrics.export.elastic.enabled=false
|
2019-05-22 08:18:41 +00:00
|
|
|
management.metrics.export.influx.enabled=false
|
|
|
|
|
|
|
|
nacos.naming.distro.taskDispatchThreadCount=10
|
|
|
|
nacos.naming.distro.taskDispatchPeriod=200
|
|
|
|
nacos.naming.distro.batchSyncKeyCount=1000
|
|
|
|
nacos.naming.distro.initDataRatio=0.9
|
|
|
|
nacos.naming.distro.syncRetryDelay=5000
|
|
|
|
nacos.naming.data.warmup=true
|
|
|
|
|
2020-03-04 12:10:07 +00:00
|
|
|
|
|
|
|
|