-
-
Save abstractj/2f3b94a3852ab4d28f5c257a703034a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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