application.properties 4.3 KB

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