Skip to content

Instantly share code, notes, and snippets.

@abstractj
Forked from sebastienblanc/bearer-only.yaml
Created August 21, 2018 15:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abstractj/2f3b94a3852ab4d28f5c257a703034a8 to your computer and use it in GitHub Desktop.
Save abstractj/2f3b94a3852ab4d28f5c257a703034a8 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: 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