lixing 3 rokov pred
rodič
commit
274fb03a52
1 zmenil súbory, kde vykonal 20 pridanie a 10 odobranie
  1. 20 10
      src/main/resources/application.yml

+ 20 - 10
src/main/resources/application.yml

@@ -8,6 +8,16 @@ alarm:
     ip: 192.168.17.55
     port: 8081
 #    ip: localhost
+rabbitmq.host: 192.168.100.93
+rabbitmq.port: 9936
+rabbitmq.username: pbsage
+rabbitmq.password: pbsage123
+redis.host: 192.168.100.93
+redis.port: 9944
+redis.database: 14
+redis.password.sentinel: test123
+redis.password.standalone: test123
+redis.sentinel.nodes: 39.102.43.179:9940
 
 server:
   port: 8101
@@ -48,24 +58,24 @@ spring:
     hibernate:
       ddl-auto: none
   redis:
-    host: 192.168.100.93
-    port: 9944
-    database: 14
+    host: ${redis.host}
+    port: ${redis.port}
+    database: ${redis.database}
     pool:
      max-active: 300
      max-wait: 3000
      min-idle: 100     
      max-idle: 300   
-    password.sentinel: test123 
-    password.standalone: test123
+    password.sentinel: ${redis.password.sentinel}
+    password.standalone: ${redis.password.standalone}
     sentinel.master: mymaster
-    sentinel.nodes: 39.102.43.179:9940
+    sentinel.nodes: ${redis.sentinel.nodes}
     use.cluster: false   
   rabbitmq:
-    host: 192.168.100.93
-    port: 9936
-    username: pbsage
-    password: pbsage123
+    host: ${rabbitmq.host}
+    port: ${rabbitmq.port}
+    username: ${rabbitmq.username}
+    password: ${rabbitmq.password}
     virtual-host: /test
     connection-timeout: 2000ms
     listener: