Skip to content

Instantly share code, notes, and snippets.

@OmarElgabry
Created June 10, 2018 19:11
Show Gist options
  • Select an option

  • Save OmarElgabry/4590bdf5dd5651dd27bbbb9c267bdef7 to your computer and use it in GitHub Desktop.

Select an option

Save OmarElgabry/4590bdf5dd5651dd27bbbb9c267bdef7 to your computer and use it in GitHub Desktop.
Gateway Configurations
# Map path to auth service
zuul.routes.auth-service.path=/auth/**
zuul.routes.auth-service.service-id=AUTH-SERVICE
# By default, all requests to gallery service for example will start with: "/gallery/"
# What will be sent to the gallery service is what comes after the path defined,
# So, if request is "/gallery/view/1", gallery service will get "/view/1".
# In case of auth, we need to pass the "/auth/" in the path to auth service. So, set strip-prefix to false
zuul.routes.auth-service.strip-prefix=false
# Exclude authorization from sensitive headers
zuul.routes.auth-service.sensitive-headers=Cookie,Set-Cookie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment