Browse Source

增加丽水相关配置

zhuoning 2 years ago
parent
commit
5c50561c58

+ 34 - 0
huimv-farm-admin/src/main/resources/application-lishui.yml

@@ -0,0 +1,34 @@
+server:
+  port: 8091
+spring:
+  application:
+    name: pigfarm-local-device
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/huimv-lishui?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: none
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+  redis:
+    host: 122.112.224.199
+    port: 6379
+    password: hm123456
+# Socket配置
+#socket:
+  # 监听端口 9001
+#  listen:
+#    #ip: 192.168.16.3
+#    ip: 192.168.1.49
+#    port: 10020
+  # 线程池 - 保持线程数 20
+  #pool-keep: 20
+  # 线程池 - 核心线程数 10
+  #pool-core: 10
+  # 线程池 - 最大线程数 20
+  #pool-max: 30
+  # 线程队列容量 10
+  #pool-queue-init: 10

+ 2 - 1
huimv-farm-admin/src/main/resources/application.properties

@@ -1,9 +1,10 @@
 #spring.profiles.active=dev
 #spring.profiles.active=prod3
-spring.profiles.active=prod
+#spring.profiles.active=prod
 #spring.profiles.active=dem
 # o
 #spring.profiles.active=yv
+spring.profiles.active=lishui
 
 #ʱ¼ä¸ñʽÅäÖÃ
 spring.jackson.date-format=yyyy-MM-dd HH:mm:ss

+ 2 - 0
huimv-farm-gateway/pom.xml

@@ -10,7 +10,9 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
+    <groupId>com.huimv</groupId>
     <artifactId>huimv-farm-gateway</artifactId>
+    <version>0.0.1</version>
 
     <properties>
         <java.version>1.8</java.version>

+ 53 - 0
huimv-farm-gateway/src/main/resources/application-lishui.yml

@@ -0,0 +1,53 @@
+server:
+  port: 8010
+
+spring:
+  application:
+    name: gateway
+  cloud:
+    gateway:
+      enabled: true
+      routes:
+        - id: admin
+          uri: http://127.0.0.1:8091
+          predicates:
+            - Path=/admin/**
+          filters:
+            - StripPrefix=1
+        - id: video
+          uri: http://127.0.0.1:8096
+          predicates:
+            - Path=/video/**
+          filters:
+            - StripPrefix=1
+        - id: produce
+          uri: http://127.0.0.1:8094
+          predicates:
+            - Path=/produce/**
+          filters:
+            - StripPrefix=1
+        - id: env
+          uri: http://127.0.0.1:8093
+          predicates:
+            - Path=/env/**
+          filters:
+            - StripPrefix=1
+        - id: receiver
+          uri: http://127.0.0.1:8098
+          predicates:
+            - Path=/receiver/**
+          filters:
+            - StripPrefix=1
+        - id: eartag
+          uri: http://127.0.0.1:8099
+          predicates:
+            - Path=/eartag/**
+          filters:
+            - StripPrefix=1
+
+
+logging:
+  level:
+    org.springframework.cloud.gateway: debug  # Gateway调试模式
+
+

+ 2 - 1
huimv-farm-gateway/src/main/resources/application.properties

@@ -1 +1,2 @@
-spring.profiles.active=dev
+#spring.profiles.active=dev
+spring.profiles.active=lishui

+ 37 - 0
huimv-farm-video/src/main/resources/application-lishui.yml

@@ -0,0 +1,37 @@
+server:
+  port: 8096
+spring:
+  application:
+    name: pigfarm-local-device
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/huimv-lishui?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456789
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
+  redis:
+    host: 122.112.224.199
+    port: 6379
+    password: hm123456
+# Socket配置
+#socket:
+  # 监听端口 9001
+#  listen:
+#    #ip: 192.168.16.3
+#    ip: 192.168.1.49
+#    port: 10020
+  # 线程池 - 保持线程数 20
+  #pool-keep: 20
+  # 线程池 - 核心线程数 10
+  #pool-core: 10
+  # 线程池 - 最大线程数 20
+  #pool-max: 30
+  # 线程队列容量 10
+  #pool-queue-init: 10
+#mybatis-plus:
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

+ 3 - 2
huimv-farm-video/src/main/resources/application.properties

@@ -1,5 +1,6 @@
 #spring.profiles.active=dev
 #spring.profiles.active=prod3
 #spring.profiles.active=demo
-spring.profiles.active=prod
-#spring.profiles.active=prod2e
+#spring.profiles.active=prod
+#spring.profiles.active=prod2e
+spring.profiles.active=lishui