Commit 710e5b0d565fb7ed4fbee36749bf5a51540324b6
1 parent
cb43290e
修改配置
Showing
1 changed file
with
1 additions
and
1 deletions
gateway.yml
| @@ -52,7 +52,7 @@ eureka: | @@ -52,7 +52,7 @@ eureka: | ||
| 52 | instance: | 52 | instance: |
| 53 | hostname: gateway | 53 | hostname: gateway |
| 54 | perferIpAddress: true | 54 | perferIpAddress: true |
| 55 | - instance-id: ${spring.cloud.client.ipAddress}:${server.port} | 55 | + instance-id: ${spring.cloud.client.ipAddress}(${spring.cloud.client.hostname}):${server.port} |
| 56 | client: | 56 | client: |
| 57 | leaseRenewalIntervalInSeconds: 5 | 57 | leaseRenewalIntervalInSeconds: 5 |
| 58 | leaseExpirationDurationInSeconds: 12 | 58 | leaseExpirationDurationInSeconds: 12 |