application.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. server:
  2. port: 8081
  3. netty:
  4. port: 8888
  5. websocket:
  6. port: 9099
  7. spring:
  8. application:
  9. name: im-server
  10. servlet:
  11. multipart:
  12. max-file-size: 10MB
  13. max-request-size: 10MB
  14. # MySQL配置
  15. datasource:
  16. driver-class-name: com.mysql.cj.jdbc.Driver
  17. url: jdbc:mysql://101.200.59.170:3306/IM?useSSL=false&useServerTime=UTC
  18. username: root
  19. password: liziyang
  20. # JPA配置
  21. jpa:
  22. database-platform: org.hibernate.dialect.MySQL8Dialect
  23. show-sql: true
  24. hibernate:
  25. ddl-auto: update
  26. properties:
  27. hibernate:
  28. format_sql: true
  29. # MongoDB配置
  30. data:
  31. mongodb:
  32. host: 101.200.59.170
  33. port: 27017
  34. database: chat_messages
  35. redis:
  36. host: 101.200.59.170
  37. port: 6379
  38. database: 0
  39. aliyun:
  40. oss:
  41. endpoint: https://oss-cn-beijing.aliyuncs.com # OSS服务区域节点
  42. accessKeyId: LTAI5tH9VHPZwGJu4UX3hrL5 # 替换为您的AccessKey ID
  43. accessKeySecret: mbsutFJYLkzosvvKNr0DD28XSg4mqA # 替换为您的AccessKey Secret
  44. bucketName: fjj1 # 替换为您的Bucket名称
  45. upload:
  46. image:
  47. dir: moments/images/ # 图片上传目录
  48. maxSize: 20971520 # 图片最大大小(字节),默认10MB
  49. video:
  50. dir: moments/videos/ # 视频上传目录
  51. maxSize: 52428800