You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ services:
13
13
wol-dockerized:
14
14
image: ghcr.io/codeshelldev/wol-dockerized:latest
15
15
container_name: wol-dockerized
16
+
ports:
17
+
- "7777:7777"
16
18
environment:
17
19
- PATTERN={HOSTNAME}
18
20
- MONITOR_INTERVAL=60
@@ -25,12 +27,30 @@ docker compose up -d
25
27
26
28
Combine with [WoL-Redirect](https://github.com/codeshelldev/wol-redirect) for a graphical interface.
27
29
30
+
## Setup
31
+
32
+
### Auto-stop
33
+
34
+
If you want your Docker Containers to automatically stop after a certain Inactivity Threshold you will have to somehow redirect requests to said service
35
+
through `http://localhost:7777/endpoint`.
36
+
37
+
! Info
38
+
39
+
> This is currently not that simple
40
+
> you cannot just redirect to `/endpoint`,
41
+
> you will have to use a _forward auth_ middleware
42
+
> this means `wol-dockerized` currently just responds with 200 OK
43
+
44
+
#### Traefik
45
+
46
+
Look at [forward auth](https://doc.traefik.io/traefik/middlewares/http/forwardauth/)
47
+
28
48
## Usage
29
49
30
50
Start Container with `query`: `jellyfin.mydomain.com`:
31
51
32
52
```bash
33
-
curl -X POST -H "Content-Type: application/json" -d '{"query": "jellyfin.mydomain.com"}' http://wol-dockerized.mydomain.com
53
+
curl -X POST -H "Content-Type: application/json" -d '{"query": "jellyfin.mydomain.com"}' http://localhost:7777
34
54
```
35
55
36
56
```yaml
@@ -46,6 +66,19 @@ services:
46
66
47
67
## Contributing
48
68
69
+
Found a bug or have new ideas or enhancements for this Project?
70
+
Feel free to open up an issue or create a Pull Request!
71
+
72
+
## TODO
73
+
74
+
! Info
75
+
76
+
> This should be really easy:
77
+
> instead of returning 200 OK on `/endpoint` just redirect back to original url,
78
+
> but wait...
79
+
> When going to the original url you will just be redirected back to `/endpoint`!
80
+
> But this would further complicate the whole **WoL-Stack** setup...
0 commit comments