application.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. server:
  2. port: 1157
  3. spring:
  4. application:
  5. name: ${HOSTNAME:@hertzbeat@}${PID}
  6. profiles:
  7. active: prod
  8. mvc:
  9. static-path-pattern: /console/**
  10. resources:
  11. static-locations:
  12. - classpath:/dist/
  13. - classpath:../dist/
  14. jackson:
  15. default-property-inclusion: NON_EMPTY
  16. sureness:
  17. auths:
  18. - digest
  19. - basic
  20. - jwt
  21. ---
  22. spring:
  23. config:
  24. activate:
  25. on-profile: prod
  26. datasource:
  27. driver-class-name: com.mysql.cj.jdbc.Driver
  28. username: admin
  29. password: admin
  30. url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false
  31. platform: mysql
  32. hikari:
  33. max-lifetime: 120000
  34. jpa:
  35. database: mysql
  36. mail:
  37. host: smtp.exmail.qq.com
  38. username: example@tancloud.cn
  39. password: example
  40. port: 465
  41. default-encoding: UTF-8
  42. properties:
  43. mail:
  44. smtp:
  45. socketFactoryClass: javax.net.ssl.SSLSocketFactory
  46. ssl:
  47. enable: true
  48. debug: false
  49. thymeleaf:
  50. prefix: classpath:/templates/ #prefix:指定模板所在的目录
  51. check-template-location: true #check-tempate-location: 检查模板路径是否存在
  52. cache: false #cache: 是否缓存,开发模式下设置为false,避免改了模板还要重启服务器,线上设置为true,可以提高性能。
  53. suffix: .html
  54. #encoding: UTF-8
  55. #content-type: text/html
  56. mode: LEGACYHTML5
  57. warehouse:
  58. store:
  59. td-engine:
  60. enabled: true
  61. driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
  62. url: jdbc:TAOS-RS://localhost:6041/hertzbeat
  63. username: root
  64. password: taosdata