Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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: go-rest
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
listen: 127.0.0.1:4000
# log all incoming requests
enable-logging: true
# log in json format
enable-json-logging: true
# should the access token be encrypted - you need an encryption-key if 'true'
enable-encrypted-token: false
# do not redirec the request, simple 307 it
no-redirects: true
upstream-url: http://127.0.0.1:3000
# upstream-keepalives specified wheather you want keepalive on the upstream endpoint
upstream-keepalives: true
skip-client-id : true
resources:
- uri: /api/v1/*
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