Skip to content

Commit

Permalink
feat: add http-dump for dev needs
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 d4ff522 commit cfaab9e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions config/oathkeeper/rules/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,38 @@
mutators:
- handler: noop

- id: "dev:http-dump:anonymous"
upstream:
preserve_host: true
url: "http://http-dump:3000"
match:
url: "http://http-dump.dev.nx-next-nest-prisma-ory-template.127.0.0.1.sslip.io/anonymous"
methods:
- GET
authenticators:
- handler: anonymous
authorizer:
handler: allow
mutators:
- handler: noop

- id: "dev:http-dump:protected"
upstream:
preserve_host: true
url: "http://http-dump:3000"
match:
url: "http://http-dump.dev.nx-next-nest-prisma-ory-template.127.0.0.1.sslip.io/protected"
methods:
- GET
authenticators:
- handler: cookie_session
authorizer:
handler: allow
mutators:
- handler: id_token
errors:
- handler: redirect

- id: "dev:api-swagger:anonymous"
upstream:
preserve_host: true
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ services:
volumes:
- keto_init_dev_data:/tmp

# http dump
http-dump:
image: nomadscafe.sakuracr.jp/http-dump-request
container_name: dev-http-dump
restart: unless-stopped

# database
postgres:
container_name: dev-postgres
Expand Down

0 comments on commit cfaab9e

Please sign in to comment.