0
以前は何回もEurekaをHTTP(非SSL)で使用しました。 しかし、スタンドアロンモードでEureka Serverを設定しようとしています。 残念ながら、サーバー自体を登録できないようです。スタンドアロンHTTPSでSpring Cloud Eurekaを設定する方法
クライアントアプリケーションは問題なく登録できます。
Serverは(org.springframework.cloud:spring-cloud-starter-parent:Dalston.SR1を使用)の代わりにhttpsを
のhttpに接続しようとする
ここでは私のユーレカサーバーの設定です:
server:
port: 8761
transport: https
name: localhost
eureka:
instance:
nonSecurePortEnabled: false
securePortEnabled: true
securePort: ${server.port}
hostname: localhost
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: https://${eureka.instance.hostname}:${eureka.instance.securePort}/eureka/
server:
waitTimeInMsWhenSyncEmpty: 5