Skip to content

Commit

Permalink
feat(oathkeeper): add swagger rules for dev
Browse files Browse the repository at this point in the history
Signed-off-by: iverly <[email protected]>
  • Loading branch information
iverly committed Nov 27, 2023
1 parent 33de4c2 commit d4ff522
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/oathkeeper/rules/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,22 @@
handler: allow
mutators:
- handler: noop

- id: "dev:api-swagger:anonymous"
upstream:
preserve_host: true
url: "http://api:3000"
match:
url: "http://api.nx-next-nest-prisma-ory-template.127.0.0.1.sslip.io/swagger/<.*>"
methods:
- GET
- POST
- PUT
- DELETE
- PATCH
authenticators:
- handler: anonymous
authorizer:
handler: allow
mutators:
- handler: noop

0 comments on commit d4ff522

Please sign in to comment.