Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created April 26, 2018 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/0c2ed0dedb8140ce6ef97b0111950abf to your computer and use it in GitHub Desktop.
Save sebastienblanc/0c2ed0dedb8140ce6ef97b0111950abf to your computer and use it in GitHub Desktop.
# is the url for retrieve the openid configuration - normally the <server>/auth/realm/<realm_name>
discovery-url: http://localhost:8180/auth/realms/summit
# the client id for the 'client' application
client-id: product-app
client-secret: 6dcb4195-c172-4da8-9ddf-e8fce0f1c0df
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
listen: localhost:5000
redirection-url: http://localhost:5000
# log all incoming requests
enable-logging: true
# log in json format
enable-json-logging: true
enable-refresh-tokens: true
encryption-key: macsefvijadrufcafpotgaciocgazvaf
upstream-url: http://localhost:8080
# upstream-keepalives specified wheather you want keepalive on the upstream endpoint
upstream-keepalives: true
skip-client-id : true
secure-cookie: false
revocation-url: http://localhost:8180/auth/realms/summit/protocol/openid-connect/logout
resources:
- uri: /products*
methods:
- GET
roles:
- user
cors-origins:
- 'http://localhost:8080'
cors-headers:
- '*'
cors-methods:
- GET
- POST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment