application.properties 3.7 KB
Newer Older
zlt2000's avatar
zlt2000 已提交
1 2
#*************** Spring Boot Related Configurations ***************#
### Default web context path:
zlt2000's avatar
zlt2000 已提交
3
server.servlet.contextPath=/nacos
zlt2000's avatar
zlt2000 已提交
4
### Default web server port:
zlt2000's avatar
zlt2000 已提交
5 6
server.port=8848

zlt2000's avatar
zlt2000 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#*************** 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


#*************** CMDB Module Related Configurations ***************#
### The interval to dump external CMDB in seconds:
zlt2000's avatar
zlt2000 已提交
48
# nacos.cmdb.dumpTaskInterval=3600
zlt2000's avatar
zlt2000 已提交
49 50

### The interval of polling data change event in seconds:
zlt2000's avatar
zlt2000 已提交
51
# nacos.cmdb.eventTaskInterval=10
zlt2000's avatar
zlt2000 已提交
52 53

### The interval of loading labels in seconds:
zlt2000's avatar
zlt2000 已提交
54
# nacos.cmdb.labelTaskInterval=300
zlt2000's avatar
zlt2000 已提交
55 56

### If turn on data loading task:
zlt2000's avatar
zlt2000 已提交
57
# nacos.cmdb.loadDataAtStart=false
zlt2000's avatar
zlt2000 已提交
58

zlt2000's avatar
zlt2000 已提交
59

zlt2000's avatar
zlt2000 已提交
60 61
#*************** Metrics Related Configurations ***************#
### Metrics for prometheus
zlt2000's avatar
zlt2000 已提交
62 63
#management.endpoints.web.exposure.include=*

zlt2000's avatar
zlt2000 已提交
64
### Metrics for elastic search
zlt2000's avatar
zlt2000 已提交
65 66 67
management.metrics.export.elastic.enabled=false
#management.metrics.export.elastic.host=http://localhost:9200

zlt2000's avatar
zlt2000 已提交
68
### Metrics for influx
zlt2000's avatar
zlt2000 已提交
69 70 71 72 73 74 75
management.metrics.export.influx.enabled=false
#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

zlt2000's avatar
zlt2000 已提交
76 77 78

#*************** Access Log Related Configurations ***************#
### If turn on the access log:
zlt2000's avatar
zlt2000 已提交
79
server.tomcat.accesslog.enabled=true
zlt2000's avatar
zlt2000 已提交
80 81

### The access log pattern:
zlt2000's avatar
zlt2000 已提交
82
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i
zlt2000's avatar
zlt2000 已提交
83 84

### The directory of access log:
zlt2000's avatar
zlt2000 已提交
85 86
server.tomcat.basedir=

zlt2000's avatar
zlt2000 已提交
87 88 89

#*************** Access Control Related Configurations ***************#
### If enable spring security, this option is deprecated in 1.2.0:
zlt2000's avatar
zlt2000 已提交
90 91
#spring.security.enabled=false

zlt2000's avatar
zlt2000 已提交
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
### The ignore urls of auth, is deprecated in 1.2.0:
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**

### The auth system to use, currently only 'nacos' is supported:
nacos.core.auth.system.type=nacos

### If turn on auth system:
nacos.core.auth.enabled=false

### The token expiration in seconds:
nacos.core.auth.default.token.expire.seconds=18000

### The default token:
nacos.core.auth.default.token.secret.key=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=false
zlt2000's avatar
zlt2000 已提交
109

zlt2000's avatar
zlt2000 已提交
110

zlt2000's avatar
zlt2000 已提交
111 112
#*************** Istio Related Configurations ***************#
### If turn on the MCP server:
zlt2000's avatar
zlt2000 已提交
113
nacos.istio.mcp.server.enabled=false