application.yml 2.7 KB

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