Преглед изворни кода

文件上传本地线上地址区分

CzRger пре 8 месеци
родитељ
комит
92c93ff3ed

+ 5 - 2
snowy-web-app/src/main/resources/application-dev.yml

@@ -56,5 +56,8 @@ spring:
       password: Taiji@2024#data
       port: 18084
       timeout: 100s
-
-
+  snowy:
+    config:
+      common:
+        backend-url: http://localhost:18070
+        front-url: http://localhost:18066

+ 5 - 1
snowy-web-app/src/main/resources/application-prod.yml

@@ -56,5 +56,9 @@ spring:
       password: Taiji@2024#data
       port: 18084
       timeout: 100s
-
+  snowy:
+    config:
+      common:
+        backend-url: http://8.130.72.63:18070
+        front-url: http://8.130.72.63:18066
 

+ 2 - 2
snowy-web-app/src/main/resources/application.yml

@@ -91,5 +91,5 @@ springdoc:
 snowy:
   config:
     common:
-      backend-url: http://localhost:18070
-      front-url: http://localhost:18065
+      backend-url: ${spring.snowy.config.common.backend-url}
+      front-url: ${spring.snowy.config.common.front-url}