server: port: 8081 netty: port: 8888 websocket: port: 9099 spring: application: name: im-server # 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: im_message_db 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