Aman
6/23/2019 - 10:46 PM

Eureka Configurations

Eureka configurations for clients and discovery.

#server
# Give a name to the eureka server
spring.application.name=Vyperion-Eureka-Server
# default port for eureka server
server.port=8761


# eureka by default will register itself as a client. So, we need to set it to false.
# What's a client server? See other microservices (image, gallery, auth, etc).
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

#@EnableEurekaServer
#@SpringBootApplication

#####################################################################

#client

# naming of client
spring.application.name=Vyperion-Technology-MicroService

# setting up port
server.port=8000


#for clients reaching eureka
eureka.client.serviceUrl.defaultZone = https://vyperion-eureka-service.herokuapp.com/eureka/

#@EnableEurekaClient        // It acts as a eureka client


#####################################################################

#api gateway

zuul.routes.Vyperion-User-MicroService.path = /users/**
zuul.routes.Vyperion-User-MicroService.url=https://vyperion-user-service.herokuapp.com
zuul.routes.Vyperion-User-MicroService.sensitiveHeaders=

zuul.routes.Vyperion-Technology-MicroService.path = /tech/**
zuul.routes.Vyperion-Technology-MicroService.url=https://vyperion-technology-service.herokuapp.com
zuul.routes.Vyperion-Technology-MicroService.sensitiveHeaders=



#Ribbon is auto integrated with Zuul and for this exercise we are not using that.
ribbon.eureka.enabled=false