123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- server:
- port: 8081
- netty:
- port: 8888
- websocket:
- port: 9099
- spring:
- application:
- name: im-server
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 10MB
- # MySQL配置
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://101.200.59.170:3306/IM?useSSL=false&useServerTime=UTC
- username: root
- password: liziyang
- # JPA配置
- jpa:
- database-platform: org.hibernate.dialect.MySQL8Dialect
- show-sql: true
- hibernate:
- ddl-auto: update
- properties:
- hibernate:
- format_sql: true
- # MongoDB配置
- data:
- mongodb:
- host: 101.200.59.170
- port: 27017
- database: chat_messages
- redis:
- host: 101.200.59.170
- port: 6379
- database: 0
- aliyun:
- oss:
- endpoint: https://oss-cn-beijing.aliyuncs.com # OSS服务区域节点
- accessKeyId: LTAI5tH9VHPZwGJu4UX3hrL5 # 替换为您的AccessKey ID
- accessKeySecret: mbsutFJYLkzosvvKNr0DD28XSg4mqA # 替换为您的AccessKey Secret
- bucketName: fjj1 # 替换为您的Bucket名称
- upload:
- image:
- dir: moments/images/ # 图片上传目录
- maxSize: 20971520 # 图片最大大小(字节),默认10MB
- video:
- dir: moments/videos/ # 视频上传目录
- maxSize: 52428800
|