application.properties 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # spring
  2. server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos}
  3. server.contextPath=/nacos
  4. server.port=${NACOS_APPLICATION_PORT:8848}
  5. server.tomcat.accesslog.max-days=30
  6. server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
  7. server.tomcat.accesslog.enabled=${TOMCAT_ACCESSLOG_ENABLED:false}
  8. server.error.include-message=ALWAYS
  9. # default current work dir
  10. server.tomcat.basedir=file:.
  11. #*************** Config Module Related Configurations ***************#
  12. ### Deprecated configuration property, it is recommended to use `spring.sql.init.platform` replaced.
  13. #spring.datasource.platform=${SPRING_DATASOURCE_PLATFORM:}
  14. spring.sql.init.platform=${SPRING_DATASOURCE_PLATFORM:}
  15. nacos.cmdb.dumpTaskInterval=3600
  16. nacos.cmdb.eventTaskInterval=10
  17. nacos.cmdb.labelTaskInterval=300
  18. nacos.cmdb.loadDataAtStart=false
  19. db.num=${MYSQL_DATABASE_NUM:1}
  20. db.url.0=jdbc:mysql://${MYSQL_SERVICE_HOST}:${MYSQL_SERVICE_PORT:3306}/${MYSQL_SERVICE_DB_NAME}?${MYSQL_SERVICE_DB_PARAM:characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false}
  21. db.user.0=${MYSQL_SERVICE_USER}
  22. db.password.0=${MYSQL_SERVICE_PASSWORD}
  23. ## DB connection pool settings
  24. db.pool.config.connectionTimeout=${DB_POOL_CONNECTION_TIMEOUT:30000}
  25. db.pool.config.validationTimeout=10000
  26. db.pool.config.maximumPoolSize=20
  27. db.pool.config.minimumIdle=2
  28. ### The auth system to use, currently only 'nacos' and 'ldap' is supported:
  29. nacos.core.auth.system.type=${NACOS_AUTH_SYSTEM_TYPE:nacos}
  30. ### worked when nacos.core.auth.system.type=nacos
  31. ### The token expiration in seconds:
  32. nacos.core.auth.plugin.nacos.token.expire.seconds=${NACOS_AUTH_TOKEN_EXPIRE_SECONDS:18000}
  33. ### The default token:
  34. nacos.core.auth.plugin.nacos.token.secret.key=${NACOS_AUTH_TOKEN:}
  35. ### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
  36. nacos.core.auth.caching.enabled=${NACOS_AUTH_CACHE_ENABLE:false}
  37. nacos.core.auth.enable.userAgentAuthWhite=${NACOS_AUTH_USER_AGENT_AUTH_WHITE_ENABLE:false}
  38. nacos.core.auth.server.identity.key=${NACOS_AUTH_IDENTITY_KEY:}
  39. nacos.core.auth.server.identity.value=${NACOS_AUTH_IDENTITY_VALUE:}
  40. ## spring security config
  41. ### turn off security
  42. nacos.security.ignore.urls=${NACOS_SECURITY_IGNORE_URLS:/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**}
  43. # metrics for elastic search
  44. management.metrics.export.elastic.enabled=false
  45. management.metrics.export.influx.enabled=false
  46. nacos.naming.distro.taskDispatchThreadCount=10
  47. nacos.naming.distro.taskDispatchPeriod=200
  48. nacos.naming.distro.batchSyncKeyCount=1000
  49. nacos.naming.distro.initDataRatio=0.9
  50. nacos.naming.distro.syncRetryDelay=5000
  51. nacos.naming.data.warmup=true
  52. nacos.console.ui.enabled=true
  53. nacos.core.param.check.enabled=true