application.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. spring:
  2. profiles:
  3. # active: report-server-dev
  4. active: report-server-online
  5. datasource:
  6. driver-class-name: com.mysql.jdbc.Driver
  7. # url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  8. # username: mooctest
  9. # password: secr3t!
  10. # Keep the connection alive if idle for a long time (needed in production)
  11. testWhileIdle: true
  12. validationQuery: SELECT 1
  13. # Show or not log for each sql query
  14. jpa:
  15. show-sql: true
  16. # Hibernate ddl auto (create, create-drop, update)
  17. hibernate:
  18. ddl-auto: validate
  19. #hbm2ddl.auto: update
  20. # Naming strategy
  21. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  22. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  23. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  24. servlet:
  25. multipart:
  26. max-file-size: 1000MB
  27. max-request-size: 1000MB
  28. oss:
  29. accessKeyId: LTAI4FdrT3HsfdR5edBVN7ws
  30. accessKeySecret: yroxrpm46DzTyzHrLBZzS3MRNIicP6
  31. endPoint: oss-cn-hangzhou.aliyuncs.com
  32. bucketName: mooctest-share
  33. sleep: 0
  34. # 配置输出日志
  35. logging:
  36. level:
  37. org.springframework.cloud.gateway: TRACE
  38. org.springframework.http.server.reactive: DEBUG
  39. org.springframework.web.reactive: DEBUG
  40. reactor.ipc.netty: DEBUG
  41. #开启端点
  42. management:
  43. endpoints:
  44. web:
  45. exposure:
  46. include: '*'
  47. security:
  48. enabled: false
  49. logging.all.level: info
  50. logging.levelfile: /root/logs/mooctest-report
  51. ---
  52. # 报告服务开发环境
  53. spring:
  54. profiles: report-server-dev
  55. datasource:
  56. url: jdbc:mysql://106.14.81.62:3306/report_service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  57. username: root
  58. password: 123456
  59. order.autoReport.upload.path: /Users/guochao/Desktop/project/enterprise-mooctest-site/var/www/reportFile/
  60. order.autoReport.builder.copyPath: /Users/guochao/Desktop/project/enterprise-mooctest-site/var/www/reportBuilder/
  61. order.autoReport.service.path: /Users/guochao/Desktop/project/enterprise-mooctest-site/projects/mooctest-report-template/
  62. order.autoReport.service.template.path: /Users/guochao/Desktop/project/enterprise-mooctest-site/projects/mooctest-report-template/
  63. static.resource.autoReport.url: /reportFile/
  64. order.vulReport.json.upload.path: /src/json/
  65. host.ip: 106.14.81.62
  66. logging.all.level: info
  67. logging.levelfile: /Users/guochao/Desktop/logs/report-service-log
  68. ---
  69. # 报告服务线上环境
  70. spring:
  71. profiles: report-server-online
  72. datasource:
  73. url: jdbc:mysql://106.14.81.62:3306/report_service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  74. username: root
  75. password: 123456
  76. static.resource.autoReport.url: /reportFile/
  77. order.autoReport.upload.path: /var/www/reportFile/
  78. order.autoReport.service.path: /root/mooctest-report-template/
  79. order.autoReport.service.template.path: /root/mooctest-report-template/
  80. order.autoReport.builder.copyPath: /var/www/reportBuilder/
  81. order.vulReport.json.upload.path: /src/json/
  82. host.ip: 106.14.81.62