Explorar el Código

dev分支 prefer-ip-address: false

laz hace 9 años
padre
commit
51164d6a9b
Se han modificado 1 ficheros con 18 adiciones y 6 borrados
  1. 18 6
      application.yml

+ 18 - 6
application.yml

@ -1,6 +1,5 @@
#Application port, since 10100, 10 per step. Update max port if new application created. Current max: 10180
app-admin.server.port: 8080
svr-adaption.server.port: 10150
svr-app.server.port: 10160
svr-dict.server.port: 10050
@ -18,7 +17,6 @@ svr-user.server.port: 10120
ag-ehr-platform.server.port: 443
ag-admin.server.port: 10000
#Application error definition, this file define common errors,
#if the error is used only in your application, please define it in your application configuration file.
ehr.common.invalid.parameter: 参数解析错误
@ -56,11 +54,7 @@ spring:
        - veth.*
        - vmnet.*
#Each application use ip to register it in eureka, eureka host is defined in "eureka-server-ip"
eureka:
  instance:
    prefer-ip-address: false
  client:
    serviceUrl:
      defaultZone: http://${eureka-server-ip}/eureka/
@ -69,16 +63,34 @@ eureka:
spring:
  profiles: dev
#If true, each application use ip to register it in eureka, eureka host is defined in "eureka-server-ip".
#else the server must have host map.
eureka:
  instance:
    prefer-ip-address: false
eureka-server-ip: 192.168.1.220:8761
---
spring:
  profiles: test
#If true, each application use ip to register it in eureka, eureka host is defined in "eureka-server-ip".
#else the server must have host map.
eureka:
  instance:
    prefer-ip-address: true
eureka-server-ip: 172.19.103.73:8761
---
spring:
  profiles: prod
#If true, each application use ip to register it in eureka, eureka host is defined in "eureka-server-ip".
#else the server must have host map.
eureka:
  instance:
    prefer-ip-address: false
eureka-server-ip: 11.1.2.21:8761