nacos/distribution/conf/application.properties

122 lines
4.1 KiB
Properties
Raw Normal View History

2019-12-20 16:29:08 +08:00
#*************** Spring Boot Related Configurations ***************#
### Default web context path:
2018-07-21 00:27:23 +08:00
server.servlet.contextPath=/nacos
2019-12-20 16:29:08 +08:00
### Default web server port:
server.port=8848
2018-07-21 00:27:23 +08:00
2019-12-20 16:29:08 +08:00
#*************** Network Related Configurations ***************#
### If prefer hostname over ip for Nacos server addresses in cluster.conf:
# nacos.inetutils.prefer-hostname-over-ip=false
### Specify local server's IP:
# nacos.inetutils.ip-address=
#*************** Config Module Related Configurations ***************#
### If user MySQL as datasource:
# spring.datasource.platform=mysql
### Count of DB:
# db.num=1
### Connect URL of DB:
# db.url.0=jdbc:mysql://1.1.1.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
# db.user=user
# db.password=password
#*************** Naming Module Related Configurations ***************#
### Data dispatch task execution period in milliseconds:
# nacos.naming.distro.taskDispatchPeriod=200
### Data count of batch sync task:
# nacos.naming.distro.batchSyncKeyCount=1000
### Retry delay in milliseconds if sync task failed:
# nacos.naming.distro.syncRetryDelay=5000
### 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:
# nacos.naming.expireInstance=true
### If enable the empty service auto clean, services with an empty instance are automatically cleared
2020-03-09 15:57:22 +08:00
nacos.naming.empty-service.auto-clean=false
### The empty service cleanup task delays startup time in milliseconds
nacos.naming.empty-service.clean.initial-delay-ms=60000
### The empty service cleanup task cycle execution time in milliseconds
nacos.naming.empty-service.clean.period-time-ms=20000
2019-12-20 16:29:08 +08:00
#*************** CMDB Module Related Configurations ***************#
### The interval to dump external CMDB in seconds:
2019-06-28 17:18:59 +08:00
# nacos.cmdb.dumpTaskInterval=3600
2019-12-20 16:29:08 +08:00
### The interval of polling data change event in seconds:
2019-06-28 17:18:59 +08:00
# nacos.cmdb.eventTaskInterval=10
2019-12-20 16:29:08 +08:00
### The interval of loading labels in seconds:
2019-06-28 17:18:59 +08:00
# nacos.cmdb.labelTaskInterval=300
2019-12-20 16:29:08 +08:00
### If turn on data loading task:
2019-06-28 17:18:59 +08:00
# nacos.cmdb.loadDataAtStart=false
2018-07-21 00:27:23 +08:00
2019-01-07 20:53:34 +08:00
2019-12-20 16:29:08 +08:00
#*************** Metrics Related Configurations ***************#
### Metrics for prometheus
2019-01-07 20:53:34 +08:00
#management.endpoints.web.exposure.include=*
2019-12-20 16:29:08 +08:00
### Metrics for elastic search
2019-01-09 11:02:44 +08:00
management.metrics.export.elastic.enabled=false
2019-01-07 20:53:34 +08:00
#management.metrics.export.elastic.host=http://localhost:9200
2019-12-20 16:29:08 +08:00
### Metrics for influx
2019-01-09 11:02:44 +08:00
management.metrics.export.influx.enabled=false
2019-01-07 20:53:34 +08:00
#management.metrics.export.influx.db=springboot
#management.metrics.export.influx.uri=http://localhost:8086
#management.metrics.export.influx.auto-create-db=true
#management.metrics.export.influx.consistency=one
#management.metrics.export.influx.compressed=true
2019-12-20 16:29:08 +08:00
#*************** Access Log Related Configurations ***************#
### If turn on the access log:
2019-01-03 16:49:57 +08:00
server.tomcat.accesslog.enabled=true
2019-12-20 16:29:08 +08:00
### The access log pattern:
2019-03-26 14:09:17 +08:00
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i
2019-12-20 16:29:08 +08:00
### The directory of access log:
server.tomcat.basedir=
2019-10-24 14:46:46 +08:00
2019-12-20 16:29:08 +08:00
#*************** Access Control Related Configurations ***************#
### If enable spring security, this option is deprecated in 1.2.0:
#spring.security.enabled=false
2019-12-18 20:25:10 +08:00
2019-12-20 16:29:08 +08:00
### The ignore urls of auth, is deprecated in 1.2.0:
2019-12-18 20:25:10 +08:00
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-12-20 16:29:08 +08:00
### The auth system to use, currently only 'nacos' is supported:
2019-12-18 20:25:10 +08:00
nacos.core.auth.system.type=nacos
2019-12-20 16:29:08 +08:00
### If turn on auth system:
2019-12-18 20:25:10 +08:00
nacos.core.auth.enabled=false
2019-12-20 16:29:08 +08:00
### The token expiration in seconds:
2019-12-18 20:25:10 +08:00
nacos.core.auth.default.token.expire.seconds=18000
2019-12-20 16:29:08 +08:00
### The default token:
nacos.core.auth.default.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789
2020-01-09 19:13:37 +08:00
### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
2020-03-04 14:49:16 +08:00
nacos.core.auth.caching.enabled=false
2020-01-09 19:13:37 +08:00
2019-12-20 16:29:08 +08:00
#*************** Istio Related Configurations ***************#
### If turn on the MCP server:
nacos.istio.mcp.server.enabled=false