Selaa lähdekoodia

配置文件整理

xsx 1 vuosi sitten
vanhempi
commit
c40e9c6068

+ 1 - 1
im-platform/src/main/resources/application-prod.yml

@@ -12,7 +12,7 @@ spring:
 
 minio:
   endpoint: http://127.0.0.1:9001 #内网地址
-  public: http://127.0.0.1:9001  #外网访问地址
+  public: https://www.boxim.online/file  #外网访问地址
   accessKey: admin
   secretKey: 3fBSt6AkgFuD77D6
   bucketName: box-im

+ 1 - 1
im-platform/src/main/resources/application-test.yml

@@ -12,7 +12,7 @@ spring:
 
 minio:
   endpoint: http://127.0.0.1:9001 #内网地址
-  public: http://127.0.0.1:9001  #外网访问地址
+  public: https://www.boxim.online/file  #外网访问地址
   accessKey: admin
   secretKey: 3fBSt6AkgFuD77D6
   bucketName: box-im

+ 5 - 10
im-platform/src/main/resources/logback.xml

@@ -8,27 +8,22 @@
             <level>info</level>
         </filter>
         <encoder>
-            <pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern>
+            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
             <charset>UTF-8</charset>
         </encoder>
     </appender>
     <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <File>${LOG_PATH}/${APP_NAME}.log</File>
+        <file>${LOG_PATH}/${APP_NAME}.log</file>
         <encoder>
-            <pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern>
+            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
             <charset>UTF-8</charset>
         </encoder>
         <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
             <fileNamePattern>${LOG_PATH}/${APP_NAME}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
-            <maxFileSize>1MB</maxFileSize>
-            <maxHistory>2</maxHistory>
+            <maxFileSize>100MB</maxFileSize>
+            <maxHistory>60</maxHistory>
             <totalSizeCap>20GB</totalSizeCap>
         </rollingPolicy>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>info</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
     </appender>
     <!-- 开发环境下的日志配置 -->
     <springProfile name="dev">

+ 5 - 10
im-server/src/main/resources/logback.xml

@@ -8,27 +8,22 @@
             <level>info</level>
         </filter>
         <encoder>
-            <pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern>
+            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
             <charset>UTF-8</charset>
         </encoder>
     </appender>
     <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <File>${LOG_PATH}/${APP_NAME}.log</File>
+        <file>${LOG_PATH}/${APP_NAME}.log</file>
         <encoder>
-            <pattern>%date [%level] [%thread] [%file : %line] %msg%n</pattern>
+            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
             <charset>UTF-8</charset>
         </encoder>
         <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
             <fileNamePattern>${LOG_PATH}/${APP_NAME}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
-            <maxFileSize>1MB</maxFileSize>
-            <maxHistory>2</maxHistory>
+            <maxFileSize>100MB</maxFileSize>
+            <maxHistory>60</maxHistory>
             <totalSizeCap>20GB</totalSizeCap>
         </rollingPolicy>
-        <filter class="ch.qos.logback.classic.filter.LevelFilter">
-            <level>info</level>
-            <onMatch>ACCEPT</onMatch>
-            <onMismatch>DENY</onMismatch>
-        </filter>
     </appender>
     <!-- 开发环境下的日志配置 -->
     <springProfile name="dev">

+ 1 - 1
im-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "boxim",
-  "version": "0.1.0",
+  "version": "3.0.0",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",