application.properties 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #*************** Spring Boot Related Configurations ***************#
  2. ### Default web context path:
  3. server.servlet.contextPath=/nacos
  4. ### Default web server port:
  5. server.port=8848
  6. #*************** Network Related Configurations ***************#
  7. ### If prefer hostname over ip for Nacos server addresses in cluster.conf:
  8. # nacos.inetutils.prefer-hostname-over-ip=false
  9. ### Specify local server's IP:
  10. # nacos.inetutils.ip-address=
  11. #*************** Config Module Related Configurations ***************#
  12. ### If user MySQL as datasource:
  13. spring.datasource.platform=mysql
  14. ### Count of DB:
  15. db.num=1
  16. ### Connect URL of DB:
  17. db.url.0=jdbc:mysql://mysql:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
  18. db.user=root
  19. db.password=password
  20. #*************** Naming Module Related Configurations ***************#
  21. ### Data dispatch task execution period in milliseconds:
  22. # nacos.naming.distro.taskDispatchPeriod=200
  23. ### Data count of batch sync task:
  24. # nacos.naming.distro.batchSyncKeyCount=1000
  25. ### Retry delay in milliseconds if sync task failed:
  26. # nacos.naming.distro.syncRetryDelay=5000
  27. ### If enable data warmup. If set to false, the server would accept request without local data preparation:
  28. # nacos.naming.data.warmup=true
  29. ### If enable the instance auto expiration, kind like of health check of instance:
  30. # nacos.naming.expireInstance=true
  31. ### If enable the empty service auto clean, services with an empty instance are automatically cleared
  32. nacos.naming.empty-service.auto-clean=false
  33. ### The empty service cleanup task delays startup time in milliseconds
  34. nacos.naming.empty-service.clean.initial-delay-ms=60000
  35. ### The empty service cleanup task cycle execution time in milliseconds
  36. nacos.naming.empty-service.clean.period-time-ms=20000
  37. #*************** CMDB Module Related Configurations ***************#
  38. ### The interval to dump external CMDB in seconds:
  39. # nacos.cmdb.dumpTaskInterval=3600
  40. ### The interval of polling data change event in seconds:
  41. # nacos.cmdb.eventTaskInterval=10
  42. ### The interval of loading labels in seconds:
  43. # nacos.cmdb.labelTaskInterval=300
  44. ### If turn on data loading task:
  45. # nacos.cmdb.loadDataAtStart=false
  46. #*************** Metrics Related Configurations ***************#
  47. ### Metrics for prometheus
  48. #management.endpoints.web.exposure.include=*
  49. ### Metrics for elastic search
  50. management.metrics.export.elastic.enabled=false
  51. #management.metrics.export.elastic.host=http://localhost:9200
  52. ### Metrics for influx
  53. management.metrics.export.influx.enabled=false
  54. #management.metrics.export.influx.db=springboot
  55. #management.metrics.export.influx.uri=http://localhost:8086
  56. #management.metrics.export.influx.auto-create-db=true
  57. #management.metrics.export.influx.consistency=one
  58. #management.metrics.export.influx.compressed=true
  59. #*************** Access Log Related Configurations ***************#
  60. ### If turn on the access log:
  61. server.tomcat.accesslog.enabled=true
  62. ### The access log pattern:
  63. server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i
  64. ### The directory of access log:
  65. server.tomcat.basedir=
  66. #*************** Access Control Related Configurations ***************#
  67. ### If enable spring security, this option is deprecated in 1.2.0:
  68. #spring.security.enabled=false
  69. ### The ignore urls of auth, is deprecated in 1.2.0:
  70. nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
  71. ### The auth system to use, currently only 'nacos' is supported:
  72. nacos.core.auth.system.type=nacos
  73. ### If turn on auth system:
  74. nacos.core.auth.enabled=false
  75. ### The token expiration in seconds:
  76. nacos.core.auth.default.token.expire.seconds=18000
  77. ### The default token:
  78. nacos.core.auth.default.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789
  79. ### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
  80. nacos.core.auth.caching.enabled=false
  81. #*************** Istio Related Configurations ***************#
  82. ### If turn on the MCP server:
  83. nacos.istio.mcp.server.enabled=false