Sfoglia il codice sorgente

oss-store 添加 prod 环境

reghao 1 anno fa
parent
commit
6367249c1a

+ 6 - 0
oss-store/pom.xml

@@ -191,6 +191,12 @@
                 <profile.active>test</profile.active>
             </properties>
         </profile>
+        <profile>
+            <id>prod</id>
+            <properties>
+                <profile.active>test</profile.active>
+            </properties>
+        </profile>
     </profiles>
 
     <build>

+ 10 - 0
oss-store/src/main/resources/application-prod.yml

@@ -0,0 +1,10 @@
+spring:
+  datasource:
+    url: jdbc:mysql://192.168.0.170:3306/reghao_oss_tdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    username: test
+    password: Test@123456
+oss:
+  storeHost: 192.168.0.182
+  storeDirs:
+    - /opt/oss/disk/13f654c8-af87-4710-aac9-7aa086c99aec/
+  consoleHost: 192.168.0.182

+ 5 - 0
oss-store/src/main/resources/logback-spring.xml

@@ -35,4 +35,9 @@
             <appender-ref ref="runtimeLog"></appender-ref>
         </root>
     </springProfile>
+    <springProfile name="prod">
+        <root level="info">
+            <appender-ref ref="runtimeLog"></appender-ref>
+        </root>
+    </springProfile>
 </configuration>