10 changed files with 196 additions and 33 deletions
@ -0,0 +1,27 @@ |
|||
spring: |
|||
datasource: |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://localhost:3306/box-im?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true |
|||
username: root |
|||
password: root |
|||
data: |
|||
redis: |
|||
host: localhost |
|||
port: 6379 |
|||
|
|||
minio: |
|||
endpoint: http://127.0.0.1:9001 #内网地址 |
|||
public: http://127.0.0.1:9001 #外网访问地址 |
|||
accessKey: admin |
|||
secretKey: admin123456 |
|||
bucketName: box-im |
|||
imagePath: image |
|||
filePath: file |
|||
videoPath: video |
|||
|
|||
webrtc: |
|||
max-channel: 9 # 多人通话最大通道数量,最大不能超过16,建议值:4,9,16 |
|||
iceServers: |
|||
- urls: stun:stun.l.google.com:19302 |
|||
|
|||
|
|||
@ -0,0 +1,26 @@ |
|||
spring: |
|||
datasource: |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://localhost:3306/box-im?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true |
|||
username: root |
|||
password: root |
|||
data: |
|||
redis: |
|||
host: localhost |
|||
port: 6379 |
|||
|
|||
minio: |
|||
endpoint: http://127.0.0.1:9001 #内网地址 |
|||
public: http://127.0.0.1:9001 #外网访问地址 |
|||
accessKey: admin |
|||
secretKey: admin123456 |
|||
bucketName: box-im |
|||
imagePath: image |
|||
filePath: file |
|||
videoPath: video |
|||
|
|||
webrtc: |
|||
max-channel: 9 # 多人通话最大通道数量,最大不能超过16,建议值:4,9,16 |
|||
iceServers: |
|||
- urls: stun:stun.l.google.com:19302 |
|||
|
|||
@ -0,0 +1,25 @@ |
|||
spring: |
|||
datasource: |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
url: jdbc:mysql://localhost:3306/box-im?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true |
|||
username: root |
|||
password: root |
|||
data: |
|||
redis: |
|||
host: localhost |
|||
port: 6379 |
|||
|
|||
minio: |
|||
endpoint: http://127.0.0.1:9001 #内网地址 |
|||
public: http://127.0.0.1:9001 #外网访问地址 |
|||
accessKey: admin |
|||
secretKey: admin123456 |
|||
bucketName: box-im |
|||
imagePath: image |
|||
filePath: file |
|||
videoPath: video |
|||
|
|||
webrtc: |
|||
max-channel: 9 # 多人通话最大通道数量,最大不能超过16,建议值:4,9,16 |
|||
iceServers: |
|||
- urls: stun:stun.l.google.com:19302 |
|||
@ -0,0 +1,48 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<configuration> |
|||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> |
|||
<property name="LOG_PATH" value="log"/> |
|||
<property name="LOG_NAME" value="im-platform.log"/> |
|||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|||
<level>info</level> |
|||
</filter> |
|||
<encoder> |
|||
<pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
</appender> |
|||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<File>${LOG_PATH}/${LOG_NAME}</File> |
|||
<encoder> |
|||
<pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|||
<fileNamePattern>${LOG_PATH}/info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
<maxHistory>60</maxHistory> |
|||
<totalSizeCap>20GB</totalSizeCap> |
|||
</rollingPolicy> |
|||
</appender> |
|||
<!-- 开发环境下的日志配置 --> |
|||
<springProfile name="dev"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
</root> |
|||
</springProfile> |
|||
<!-- 测试环境下的日志配置 --> |
|||
<springProfile name="test"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
<appender-ref ref="FILE"/> |
|||
</root> |
|||
</springProfile> |
|||
<!-- 生产环境下的日志配置 --> |
|||
<springProfile name="prod"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
<appender-ref ref="FILE"/> |
|||
</root> |
|||
</springProfile> |
|||
</configuration> |
|||
@ -0,0 +1,5 @@ |
|||
spring: |
|||
redis: |
|||
host: 127.0.0.1 |
|||
port: 6379 |
|||
|
|||
@ -0,0 +1,4 @@ |
|||
spring: |
|||
redis: |
|||
host: 127.0.0.1 |
|||
port: 6379 |
|||
@ -0,0 +1,4 @@ |
|||
spring: |
|||
redis: |
|||
host: 127.0.0.1 |
|||
port: 6379 |
|||
@ -0,0 +1,48 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<configuration> |
|||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> |
|||
<property name="LOG_PATH" value="log"/> |
|||
<property name="LOG_NAME" value="im-server.log"/> |
|||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|||
<level>info</level> |
|||
</filter> |
|||
<encoder> |
|||
<pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
</appender> |
|||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<File>${LOG_PATH}/${LOG_NAME}</File> |
|||
<encoder> |
|||
<pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
|||
<fileNamePattern>${LOG_PATH}/info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
<maxHistory>60</maxHistory> |
|||
<totalSizeCap>20GB</totalSizeCap> |
|||
</rollingPolicy> |
|||
</appender> |
|||
<!-- 开发环境下的日志配置 --> |
|||
<springProfile name="dev"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
</root> |
|||
</springProfile> |
|||
<!-- 测试环境下的日志配置 --> |
|||
<springProfile name="test"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
<appender-ref ref="FILE"/> |
|||
</root> |
|||
</springProfile> |
|||
<!-- 生产环境下的日志配置 --> |
|||
<springProfile name="prod"> |
|||
<root level="INFO"> |
|||
<appender-ref ref="CONSOLE"/> |
|||
<appender-ref ref="FILE"/> |
|||
</root> |
|||
</springProfile> |
|||
</configuration> |
|||
Loading…
Reference in new issue