application.properties 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # spring
  2. server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos}
  3. server.contextPath=/nacos
  4. server.port=${NACOS_APPLICATION_PORT:8848}
  5. spring.datasource.platform=${SPRING_DATASOURCE_PLATFORM:""}
  6. nacos.cmdb.dumpTaskInterval=3600
  7. nacos.cmdb.eventTaskInterval=10
  8. nacos.cmdb.labelTaskInterval=300
  9. nacos.cmdb.loadDataAtStart=false
  10. db.num=${MYSQL_DATABASE_NUM:1}
  11. db.url.0=jdbc:mysql://${MYSQL_SERVICE_HOST}:${MYSQL_SERVICE_PORT:3306}/${MYSQL_SERVICE_DB_NAME}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
  12. db.url.1=jdbc:mysql://${MYSQL_SERVICE_HOST}:${MYSQL_SERVICE_PORT:3306}/${MYSQL_SERVICE_DB_NAME}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
  13. db.user=${MYSQL_SERVICE_USER}
  14. db.password=${MYSQL_SERVICE_PASSWORD}
  15. ### The auth system to use, currently only 'nacos' is supported:
  16. nacos.core.auth.system.type=${NACOS_AUTH_SYSTEM_TYPE:nacos}
  17. ### The token expiration in seconds:
  18. nacos.core.auth.default.token.expire.seconds=${NACOS_AUTH_TOKEN_EXPIRE_SECONDS:18000}
  19. ### The default token:
  20. nacos.core.auth.default.token.secret.key=${NACOS_AUTH_TOKEN:SecretKey012345678901234567890123456789012345678901234567890123456789}
  21. ### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
  22. nacos.core.auth.caching.enabled=${NACOS_AUTH_CACHE_ENABLE:false}
  23. server.tomcat.accesslog.enabled=${TOMCAT_ACCESSLOG_ENABLED:false}
  24. server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D
  25. # default current work dir
  26. server.tomcat.basedir=
  27. ## spring security config
  28. ### turn off security
  29. nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
  30. # metrics for elastic search
  31. management.metrics.export.elastic.enabled=false
  32. management.metrics.export.influx.enabled=false
  33. nacos.naming.distro.taskDispatchThreadCount=10
  34. nacos.naming.distro.taskDispatchPeriod=200
  35. nacos.naming.distro.batchSyncKeyCount=1000
  36. nacos.naming.distro.initDataRatio=0.9
  37. nacos.naming.distro.syncRetryDelay=5000
  38. nacos.naming.data.warmup=true