Browse Source

Revert: docker打包和容器编排

gaodm 6 năm trước cách đây
mục cha
commit
68b2ef904d
1 tập tin đã thay đổi với 14 bổ sung0 xóa
  1. 14 0
      config-server/src/main/resources/application.yml

+ 14 - 0
config-server/src/main/resources/application.yml

@@ -27,11 +27,25 @@ server:
   port: 8769
 
 eureka:
+  instance:
+    leaseRenewalIntervalInSeconds: 10
+    health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
   client:
+    registryFetchIntervalSeconds: 5
     serviceUrl:
       defaultZone: http://${myuri}:8761/eureka/
 
 management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+      cors:
+        allowed-origins: "*"
+        allowed-methods: "*"
+  endpoint:
+      health:
+        show-details: ALWAYS
   security:
     enabled: false