Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Forbbiden #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ And then run a `curl` **with** a valid client certificate to see the `api.mocki.
curl --cacert example/sidecar/server-certs/server-ca.pem --key example/client/certs/client-key.pem --cert example/client/certs/client.pem -k https://localhost
```

Response:
Response will be the home page of https://mtls.run/:

```bash
[{"title":"Clean kitchen","description":"Don't forget the are under the sink!!"},{"title":"Call Eric","description":"Remind him to do his taxes"},{"title":"Water flowers","description":"Don't forget the ones in the garden!"}]
!DOCTYPE html><html lang="en"><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>mTLS Best Friend</title><link rel="icon" href="/logo_labbs.png"/><meta name="next-head-count" content="4"/><link rel="preload" href="/_next/static/css/4a81d3e230deb4774270.css" as="style"/><link rel="stylesheet" href="/_next/static/css/4a81d3e230deb4774270.css" data-n-g=""/><noscript data-n-css=""></noscript><link rel="preload" href="/_next/static/chunks/main-a3e8d7207ca8525c43de.js" as="script"/>
...
```

## The whole pattern
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
build: .
environment:
- ALLOWED_CERTIFICATE_FINGERPRINT=all
- PROXY_PASS=https://api.mocki.io:443/v1/13f44462
- PROXY_PASS=https://mtls.run/
volumes:
- ./example/sidecar/server-certs:/etc/nginx/conf.d/certs
ports:
Expand Down