0

I have used Eureka several times previously in HTTP (non-SSL). However, I am trying to configure the Eureka Server in Standalone mode. Unfortunately, the Server can't seem to register itself.

The Client applications are able to register without a problem.

The Server attempts to connect to http instead of https

(Using org.springframework.cloud:spring-cloud-starter-parent:Dalston.SR1)

Here is my Eureka Server config:


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

BPete
  • 43
  • 4

1 Answers1

0

Found the problem. The main issue was that my application.yml is located in the wrong directory.

The directory was names resource instead of resources.

After renaming the directory, my problem seems to be solved.

BPete
  • 43
  • 4