application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. server:
  2. servlet:
  3. contextPath: /nacos
  4. tomcat:
  5. accesslog:
  6. enabled: true
  7. pattern: '%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i'
  8. basedir: ''
  9. spring:
  10. datasource:
  11. platform: mysql
  12. db:
  13. num: 1
  14. url:
  15. # '0': jdbc:mysql://192.168.1.190:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
  16. # 研发环境
  17. # '0': jdbc:mysql://123.57.213.14:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
  18. # 本地环境
  19. '0': jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
  20. user:
  21. '0': root
  22. password:
  23. '0': root
  24. management:
  25. metrics:
  26. export:
  27. elastic:
  28. enabled: false
  29. # influx:
  30. # enabled: false
  31. health:
  32. rabbit:
  33. enabled: false
  34. nacos:
  35. core:
  36. auth:
  37. #是否开启鉴权(JeecgNacosApplication.enabled属性优先级更高)
  38. enabled: false
  39. caching:
  40. enabled: true
  41. server:
  42. identity:
  43. key: example
  44. value: example
  45. plugin:
  46. nacos:
  47. token:
  48. expire:
  49. seconds: 18000
  50. secret:
  51. key: SecretKey01234567890123456789012345345678999987654901234567890123456789
  52. system:
  53. type: nacos
  54. istio:
  55. mcp:
  56. server:
  57. enabled: false
  58. naming:
  59. empty-service:
  60. auto-clean: true
  61. clean:
  62. initial-delay-ms: 50000
  63. period-time-ms: 30000
  64. security:
  65. ignore:
  66. urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
  67. standalone: true