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}
|
2022-08-12 09:47:51 +00:00
|
|
|
server.tomcat.accesslog.max-days=30
|
|
|
|
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
|
2022-12-21 04:34:51 +00:00
|
|
|
server.tomcat.accesslog.enabled=${TOMCAT_ACCESSLOG_ENABLED:false}
|
2023-04-14 06:53:02 +00:00
|
|
|
server.error.include-message=ALWAYS
|
2022-12-21 04:34:51 +00:00
|
|
|
# default current work dir
|
|
|
|
server.tomcat.basedir=file:.
|
|
|
|
#*************** Config Module Related Configurations ***************#
|
|
|
|
### Deprecated configuration property, it is recommended to use `spring.sql.init.platform` replaced.
|
|
|
|
#spring.datasource.platform=${SPRING_DATASOURCE_PLATFORM:}
|
|
|
|
spring.sql.init.platform=${SPRING_DATASOURCE_PLATFORM:}
|
2019-05-22 08:18:41 +00:00
|
|
|
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}
|
2022-12-21 04:34:51 +00:00
|
|
|
db.user.0=${MYSQL_SERVICE_USER}
|
|
|
|
db.password.0=${MYSQL_SERVICE_PASSWORD}
|
2023-10-23 13:35:10 +00:00
|
|
|
## DB connection pool settings
|
|
|
|
db.pool.config.connectionTimeout=${DB_POOL_CONNECTION_TIMEOUT:30000}
|
|
|
|
db.pool.config.validationTimeout=10000
|
|
|
|
db.pool.config.maximumPoolSize=20
|
|
|
|
db.pool.config.minimumIdle=2
|
2022-05-21 00:55:10 +00:00
|
|
|
### The auth system to use, currently only 'nacos' and 'ldap' is supported:
|
|
|
|
nacos.core.auth.system.type=${NACOS_AUTH_SYSTEM_TYPE:nacos}
|
|
|
|
### worked when nacos.core.auth.system.type=nacos
|
2020-03-04 12:10:07 +00:00
|
|
|
### The token expiration in seconds:
|
2022-05-21 00:55:10 +00:00
|
|
|
nacos.core.auth.plugin.nacos.token.expire.seconds=${NACOS_AUTH_TOKEN_EXPIRE_SECONDS:18000}
|
2020-03-04 12:10:07 +00:00
|
|
|
### The default token:
|
2023-04-14 06:51:48 +00:00
|
|
|
nacos.core.auth.plugin.nacos.token.secret.key=${NACOS_AUTH_TOKEN:}
|
2020-03-04 12:10:07 +00:00
|
|
|
### 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}
|
2023-04-14 06:51:48 +00:00
|
|
|
nacos.core.auth.server.identity.key=${NACOS_AUTH_IDENTITY_KEY:}
|
|
|
|
nacos.core.auth.server.identity.value=${NACOS_AUTH_IDENTITY_VALUE:}
|
2019-05-22 08:18:41 +00:00
|
|
|
## 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
|
2023-12-06 07:00:22 +00:00
|
|
|
nacos.console.ui.enabled=true
|
|
|
|
nacos.core.param.check.enabled=true
|
2020-03-04 12:10:07 +00:00
|
|
|
|
|
|
|
|