Skip to content

Commit f201c7a

Browse files
committed
📝 Improved markdown
1 parent 3936b86 commit f201c7a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@ docker compose -f docker-compose-ssl.yml down
9494
Troubleshooting: validate connectivity to the mock server
9595

9696
- Check container status and port mapping:
97-
- docker compose -f docker-compose-ssl.yml ps
97+
- `docker compose -f docker-compose-ssl.yml ps`
9898
- From the host, try the discovery URL directly (this is what the example uses by default):
99-
- curl -v http://localhost:8080/default/.well-known/openid-configuration
100-
- If that fails immediately, also try: curl -v --connect-timeout 2 http://127.0.0.1:8080/default/.well-known/openid-configuration
101-
- From inside the container (to distinguish container vs host networking):
102-
- docker exec -it oauth2-mock-oauth2-server-1 curl -v http://127.0.0.1:8080/default/.well-known/openid-configuration
99+
- `curl -v http://localhost:8080/default/.well-known/openid-configuration`
100+
- If that fails immediately, also try: `curl -v --connect-timeout 2 http://127.0.0.1:8080/default/.well-known/openid-configuration`
101+
- From inside the container (to distinguish container vs. host networking):
102+
- `docker exec -it oauth2-mock-oauth2-server-1 curl -v http://127.0.0.1:8080/default/.well-known/openid-configuration`
103103
- Simple TCP probe from the host:
104-
- nc -vz localhost 8080 # or: ruby -rsocket -e 'TCPSocket.new("localhost",8080).close; puts "tcp ok"'
104+
- `nc -vz localhost 8080 # or: ruby -rsocket -e 'TCPSocket.new("localhost",8080).close; puts "tcp ok"'`
105105
- Inspect which host port 8080 is bound to (should be 8080):
106-
- docker inspect -f '{{ (index (index .NetworkSettings.Ports "8080/tcp") 0).HostPort }}' oauth2-mock-oauth2-server-1
106+
- `docker inspect -f '{{ (index (index .NetworkSettings.Ports "8080/tcp") 0).HostPort }}' oauth2-mock-oauth2-server-1`
107107
- Look at server logs for readiness/errors:
108-
- docker logs -n 200 oauth2-mock-oauth2-server-1
108+
- `docker logs -n 200 oauth2-mock-oauth2-server-1`
109109
- On Linux, ensure nothing else is bound to 8080 and that firewall/SELinux aren’t blocking:
110-
- ss -ltnp | grep :8080
110+
- `ss -ltnp | grep :8080`
111111

112112
Notes
113-
- Discovery URL pattern is: http://localhost:8080/<realm>/.well-known/openid-configuration, where <realm> defaults to "default".
113+
- Discovery URL pattern is: `http://localhost:8080/<realm>/.well-known/openid-configuration`, where `<realm>` defaults to `default`.
114114
- You can change these with env vars when running the example:
115-
- E2E_ISSUER_BASE (default: http://localhost:8080)
116-
- E2E_REALM (default: default)
115+
- `E2E_ISSUER_BASE` (default: http://localhost:8080)
116+
- `E2E_REALM` (default: default)
117117

118118
</details>
119119

0 commit comments

Comments
 (0)