File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ This repository contains a virtual "lab" that can be used to experiment with Ngi
10
10
11
11
## Usage
12
12
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.
16
17
17
18
### TLS support
18
19
@@ -22,5 +23,14 @@ domain `*.homelab.dev`.
22
23
To send an HTTPS request to the outer proxy with ` curl ` :
23
24
24
25
```
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'
26
36
```
You can’t perform that action at this time.
0 commit comments