Skip to content

Commit 6f4469a

Browse files
Merge branch 'woutervanelten-patch-5' into dev
2 parents f513f97 + 663e283 commit 6f4469a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ When Newt receives WireGuard control messages, it will use the information encod
4040
- `tls-client-cert` (optional): Client certificate (p12 or pfx) for mTLS. See [mTLS](#mtls)
4141
- `docker-socket` (optional): Set the Docker socket to use the container discovery integration
4242
- `docker-enforce-network-validation` (optional): Validate the container target is on the same network as the newt process
43+
- `health-file` (optional): Check if connection to WG server (pangolin) is ok. creates a file if ok, removes it if not ok. Can be used with docker healtcheck to restart newt
4344

4445
- Example:
4546

@@ -61,7 +62,8 @@ services:
6162
environment:
6263
- PANGOLIN_ENDPOINT=https://example.com
6364
- NEWT_ID=2ix2t8xk22ubpfy
64-
- NEWT_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2
65+
- NEWT_SECRET=nnisrfsdfc7prqsp9ewo1dvtvci50j5uiqotez00dgap0ii2
66+
- HEALTH_FILE=/tmp/healthy
6567
```
6668
6769
You can also pass the CLI args to the container:
@@ -76,6 +78,7 @@ services:
7678
- --id 31frd0uzbjvp721
7779
- --secret h51mmlknrvrwv8s4r1i210azhumt6isgbpyavxodibx1k2d6
7880
- --endpoint https://example.com
81+
- --health-file /tmp/healthy
7982
```
8083
8184
### Docker Socket Integration

0 commit comments

Comments
 (0)