Skip to content

Commit 6cea4f7

Browse files
committed
2 parents 9547e4c + ef4d46b commit 6cea4f7

1 file changed

Lines changed: 102 additions & 9 deletions

File tree

README.md

Lines changed: 102 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,40 @@ http:
115115
insecureSkipVerify: true
116116
```
117117
118-
## Usage
118+
### Configuration
119119
120-
Use a Reverse Proxy to redirect you from a service `https://jellyfin.mydomain.com` on another machine to `https://wol-red.mydomain.com`,
121-
WoL Redirect will use the `config.json` to get the host of the requested service.
120+
```json
121+
{
122+
"hosts": {
123+
"server-1": {
124+
"ip": "192.168.1.1",
125+
"mac": "XX:XX:XX:XX:XX:XX",
126+
"startupTime": 40
127+
}
128+
},
129+
"routes": {
130+
"server-1": {
131+
"route": ["server-1"]
132+
}
133+
},
134+
"records": {
135+
"*.mydomain.com": "server-1"
136+
}
137+
}
138+
```
139+
140+
#### PVE (VMs + LXCs)
141+
142+
If you are trying to wakeup a host running PVE, you will probably want to wakeup LXCs or VMs too.
143+
Sadly LXCs (and VMs) don't have `Wake-on-LAN` functionalities.
144+
For that you will need (WoL PVE)[https://github.com/codeshelldev/wol-pve]
122145

123146
```json
124147
{
125148
"hosts": {
126149
"pve": {
127150
"ip": "192.168.1.1",
128-
"mac": "XX:XX:XX:XX",
151+
"mac": "XX:XX:XX:XX:XX:XX",
129152
"startupTime": 40
130153
},
131154
"lxc": {
@@ -143,19 +166,89 @@ WoL Redirect will use the `config.json` to get the host of the requested service
143166
},
144167
"routes": {
145168
"pve-lxc": {
146-
"route": ["pve", "lxc"],
147-
"attributes": {
148-
"wakeDocker": true
149-
}
169+
"route": ["pve", "lxc"]
150170
}
151171
},
152172
"records": {
153-
"jellyfin.mydomain.com": "pve-lxc",
154173
"*.mydomain.com": "pve-lxc"
155174
}
156175
}
157176
```
158177

178+
#### Docker
179+
180+
If you are running docker on your resource-hungry server, you might want to start docker-containers only if needed.
181+
For this to work you will need (WoL Dockerized)[https://github.com/codeshelldev/wol-dockerized]
182+
183+
```json
184+
{
185+
"hosts": {
186+
"docker-server": {
187+
"ip": "192.168.1.1",
188+
"mac": "XX:XX:XX:XX:XX:XX",
189+
"startupTime": 10
190+
}
191+
},
192+
"routes": {
193+
"docker": {
194+
"route": ["docker-server"],
195+
"attributes": {
196+
"wakeDocker": true
197+
}
198+
}
199+
},
200+
"records": {
201+
"jellyfin.mydomain.com": "docker",
202+
"*.mydomain.com": "docker"
203+
}
204+
}
205+
```
206+
207+
#### Or both
208+
209+
```json
210+
{
211+
"hosts": {
212+
"pve": {
213+
"ip": "192.168.1.1",
214+
"mac": "XX:XX:XX:XX:XX:XX",
215+
"startupTime": 40
216+
},
217+
"lxc": {
218+
"ip": "192.168.1.1",
219+
"id": "100",
220+
"startupTime": 10,
221+
"isVirtual": true
222+
},
223+
"ubuntu-vm": {
224+
"ip": "192.168.1.1",
225+
"id": "100",
226+
"startupTime": 10,
227+
"isVirtual": true
228+
}
229+
},
230+
"routes": {
231+
"pve-lxc": {
232+
"route": ["pve", "lxc"],
233+
"attributes": {
234+
"wakeDocker": true
235+
}
236+
}
237+
},
238+
"records": {
239+
"jellyfin.mydomain.com": "pve-lxc",
240+
"*.mydomain.com": "pve-lxc"
241+
}
242+
}
243+
```
244+
245+
_You will need both (WoL PVE)[https://github.com/codeshelldev/wol-pve] and (WoL Dockerized)[https://github.com/codeshelldev/wol-dockerized]_
246+
247+
## Usage
248+
249+
Use a Reverse Proxy to redirect you from a service `https://jellyfin.mydomain.com` on another machine to `https://wol-red.mydomain.com`,
250+
WoL Redirect will use the `config.json` to get the host of the requested service.
251+
159252
## Contributing
160253

161254
## License

0 commit comments

Comments
 (0)