|
|
|
@ -26,8 +26,10 @@ server.port=8848
|
|
|
|
|
### Specify local server's IP:
|
|
|
|
|
# nacos.inetutils.ip-address=
|
|
|
|
|
#*************** Config Module Related Configurations ***************#
|
|
|
|
|
### If use MySQL as datasource:
|
|
|
|
|
spring.datasource.platform=mysql
|
|
|
|
|
### Deprecated configuration property, it is recommended to use `spring.sql.init.platform` replaced.
|
|
|
|
|
# spring.datasource.platform=mysql
|
|
|
|
|
# nacos.plugin.datasource.log.enabled=true
|
|
|
|
|
spring.sql.init.platform=mysql
|
|
|
|
|
### Count of DB:
|
|
|
|
|
db.num=1
|
|
|
|
|
### Connect URL of DB:
|
|
|
|
@ -40,12 +42,8 @@ db.pool.config.validationTimeout=10000
|
|
|
|
|
db.pool.config.maximumPoolSize=20
|
|
|
|
|
db.pool.config.minimumIdle=2
|
|
|
|
|
#*************** Naming Module Related Configurations ***************#
|
|
|
|
|
### Data dispatch task execution period in milliseconds: Will removed on v2.1.X, replace with nacos.core.protocol.distro.data.sync.delayMs
|
|
|
|
|
# nacos.naming.distro.taskDispatchPeriod=200
|
|
|
|
|
### Data count of batch sync task: Will removed on v2.1.X. Deprecated
|
|
|
|
|
# nacos.naming.distro.batchSyncKeyCount=1000
|
|
|
|
|
### Retry delay in milliseconds if sync task failed: Will removed on v2.1.X, replace with nacos.core.protocol.distro.data.sync.retryDelayMs
|
|
|
|
|
# nacos.naming.distro.syncRetryDelay=5000
|
|
|
|
|
### Data dispatch task execution period in milliseconds:
|
|
|
|
|
|
|
|
|
|
### If enable data warmup. If set to false, the server would accept request without local data preparation:
|
|
|
|
|
# nacos.naming.data.warmup=true
|
|
|
|
|
### If enable the instance auto expiration, kind like of health check of instance:
|
|
|
|
@ -97,6 +95,8 @@ management.metrics.export.influx.enabled=false
|
|
|
|
|
#*************** Access Log Related Configurations ***************#
|
|
|
|
|
### If turn on the access log:
|
|
|
|
|
server.tomcat.accesslog.enabled=true
|
|
|
|
|
### accesslog automatic cleaning time
|
|
|
|
|
server.tomcat.accesslog.max-days=30
|
|
|
|
|
### The access log pattern:
|
|
|
|
|
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
|
|
|
|
|
### The directory of access log:
|
|
|
|
@ -121,7 +121,7 @@ nacos.core.auth.server.identity.value=security
|
|
|
|
|
### worked when nacos.core.auth.system.type=nacos
|
|
|
|
|
### The token expiration in seconds:
|
|
|
|
|
nacos.core.auth.plugin.nacos.token.expire.seconds=18000
|
|
|
|
|
### The default token:
|
|
|
|
|
### The default token (Base64 string):
|
|
|
|
|
nacos.core.auth.plugin.nacos.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789
|
|
|
|
|
### worked when nacos.core.auth.system.type=ldap?{0} is Placeholder,replace login username
|
|
|
|
|
#nacos.core.auth.ldap.url=ldap://localhost:389
|
|
|
|
@ -130,9 +130,12 @@ nacos.core.auth.plugin.nacos.token.secret.key=SecretKey0123456789012345678901234
|
|
|
|
|
#nacos.core.auth.ldap.password=admin
|
|
|
|
|
#nacos.core.auth.ldap.userdn=cn={0},dc=example,dc=org
|
|
|
|
|
#nacos.core.auth.ldap.filter.prefix=uid
|
|
|
|
|
#nacos.core.auth.ldap.case.sensitive=true
|
|
|
|
|
#*************** Istio Related Configurations ***************#
|
|
|
|
|
### If turn on the MCP server:
|
|
|
|
|
nacos.istio.mcp.server.enabled=false
|
|
|
|
|
|
|
|
|
|
###*************** Add from 1.3.0 ***************###
|
|
|
|
|
#*************** Core Related Configurations ***************#
|
|
|
|
|
### set the WorkerID manually
|
|
|
|
|
# nacos.core.snowflake.worker-id=
|
|
|
|
@ -179,4 +182,6 @@ nacos.istio.mcp.server.enabled=false
|
|
|
|
|
### Distro data verify timeout for one verify, default 3 seconds.
|
|
|
|
|
# nacos.core.protocol.distro.data.verify.timeoutMs=3000
|
|
|
|
|
### Distro data load retry delay when load snapshot data failed, default 30 seconds.
|
|
|
|
|
# nacos.core.protocol.distro.data.load.retryDelayMs=30000
|
|
|
|
|
# nacos.core.protocol.distro.data.load.retryDelayMs=30000
|
|
|
|
|
### enable to support prometheus service discovery
|
|
|
|
|
#nacos.prometheus.metrics.enabled=true
|
|
|
|
|