Skip to content

Commit 74e52e5

Browse files
committed
minor corrections to the README file
1 parent 97307bb commit 74e52e5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ This repository contains a virtual "lab" that can be used to experiment with Ngi
1010

1111
## Usage
1212

13-
Run `docker-compose up` to spin up the whole stack, then your main (outer) frontend can be accessed on `localhost:8080`
14-
and your secondary (inner) frontend on `localhost:9090`; the backend application is bound to the `/app` location on both
15-
proxies.
13+
Run `docker compose up` to spin up the whole stack, then your main (outer) frontend can be accessed
14+
on `localhost:8080` (HTTP) or `localhost:8443` (HTTPS) and your secondary (inner) frontend on
15+
`localhost:9090` (and 9443 for HTTPS); the backend application is bound to the `/app` location on
16+
both proxies.
1617

1718
### TLS support
1819

@@ -22,5 +23,14 @@ domain `*.homelab.dev`.
2223
To send an HTTPS request to the outer proxy with `curl`:
2324

2425
```
25-
$ curl -k --resolve outer-proxy.homelab.dev:8443:127.0.0.1 https://outer-proxy.homelab.dev:8443
26+
$ curl --insecure --resolve '*:8443:127.0.0.1' https://example.homelab.dev:8443
27+
```
28+
29+
### Logs
30+
31+
In an ideal world Docker Compose would distinguish between stdout and sterr when streaming logs, but
32+
until then:
33+
34+
```
35+
$ docker compose logs -f outer-proxy -n 0 --no-log-prefix | jq -R '. as $line | try (fromjson) catch $line'
2636
```

0 commit comments

Comments
 (0)