@@ -49,7 +49,6 @@ In this example we'll be using traefik:
4949
5050``` yaml
5151services :
52- # ...
5352 wolred :
5453 container_name : wol-redirect
5554 image : ghcr.io/codeshelldev/wol-redirect:latest
@@ -59,12 +58,13 @@ services:
5958 labels :
6059 - traefik.enable=true
6160 - traefik.http.routers.wolred-https.rule=Host(`wol-redirect.mydomain.com`)
61+ - traefik.http.routers.wolred-https.priority=10
6262 - traefik.http.routers.wolred-https.entrypoints=websecure
6363 - traefik.http.routers.wolred-https.tls=true
6464 - traefik.http.routers.wolred-https.tls.certresolver=cloudflare
6565 - traefik.http.routers.wolred-https.service=wolred-svc
6666
67- - traefik.http.services.wolred-svc.loadbalancer.server.port=80
67+ - traefik.http.services.wolred-svc.loadbalancer.server.port=6789
6868 - traefik.docker.network=proxy
6969 volumes :
7070 - ./config:/app/config:ro
@@ -81,37 +81,7 @@ networks:
8181Let's use jellyfin for example
8282
8383` ` ` yaml
84- http :
85- routers :
86- jellyfin :
87- entrypoints :
88- - " websecure"
89- rule : " Host(`jellyfin.mydomain.com`)"
90- tls :
91- certResolver : cloudflare
92- service : jellyfin-failover
93-
94- services :
95- jellyfin-failover :
96- failover :
97- service : jellyfin-svc@file
98- fallback : wolred-svc@docker # the name of your wol redirect service
99- jellyfin-svc :
100- loadBalancer :
101- serversTransport : transport
102- healthCheck :
103- # host your jellyfin instance with an additional port 12345, which is used for healthchecks
104- # change this to port 80 / 443 if you are not hosting the docker host on top of PVE with wol-pve
105- port : 12345
106- interval : 5s
107- timeout : 3s
108- scheme : http
109- servers :
110- - url : " https://jellyfin.server2.mydomain.com" # actual url of jellyfin
111-
112- serversTransports :
113- transport :
114- insecureSkipVerify : true
84+ file not found : /home/runner/work/wol-redirect/wol-redirect/examples/jellyfin.yaml
11585` ` `
11686
11787### Configuration
12292 " server-1" : {
12393 " ip" : "192.168.1.1",
12494 " mac" : "XX:XX:XX:XX:XX:XX",
125- " startupTime" : 40
95+ " startupTime" : 60
12696 }
12797 },
12898 " routes" : {
@@ -160,35 +130,7 @@ Sadly LXCs (and VMs) don't have `Wake-on-LAN` functionalities.
160130For that you will need [ WoL PVE] ( https://github.com/codeshelldev/wol-pve )
161131
162132``` json
163- {
164- "hosts" : {
165- "pve" : {
166- "ip" : " 192.168.1.1" ,
167- "mac" : " XX:XX:XX:XX:XX:XX" ,
168- "startupTime" : 40
169- },
170- "lxc" : {
171- "ip" : " 192.168.1.1" ,
172- "id" : " 100" ,
173- "startupTime" : 10 ,
174- "isVirtual" : true
175- },
176- "ubuntu-vm" : {
177- "ip" : " 192.168.1.1" ,
178- "id" : " 100" ,
179- "startupTime" : 10 ,
180- "isVirtual" : true
181- }
182- },
183- "routes" : {
184- "pve-lxc" : {
185- "route" : [" pve" , " lxc" ]
186- }
187- },
188- "records" : {
189- "*.mydomain.com" : " pve-lxc"
190- }
191- }
133+ file not found: /home/runner/work/wol-redirect/wol-redirect/examples/config/mapping-pve.json
192134```
193135
194136#### Docker
@@ -197,65 +139,13 @@ If you are running docker on your resource-hungry server, you might want to star
197139For this to work you will need [ WoL Dockerized] ( https://github.com/codeshelldev/wol-dockerized )
198140
199141``` json
200- {
201- "hosts" : {
202- "docker-server" : {
203- "ip" : " 192.168.1.1" ,
204- "mac" : " XX:XX:XX:XX:XX:XX" ,
205- "startupTime" : 10
206- }
207- },
208- "routes" : {
209- "docker" : {
210- "route" : [" docker-server" ],
211- "attributes" : {
212- "wakeDocker" : true
213- }
214- }
215- },
216- "records" : {
217- "jellyfin.mydomain.com" : " docker" ,
218- "*.mydomain.com" : " docker"
219- }
220- }
142+ file not found: /home/runner/work/wol-redirect/wol-redirect/examples/config/mapping-docker.json
221143```
222144
223145#### Or both
224146
225147``` json
226- {
227- "hosts" : {
228- "pve" : {
229- "ip" : " 192.168.1.1" ,
230- "mac" : " XX:XX:XX:XX:XX:XX" ,
231- "startupTime" : 40
232- },
233- "lxc" : {
234- "ip" : " 192.168.1.1" ,
235- "id" : " 100" ,
236- "startupTime" : 10 ,
237- "isVirtual" : true
238- },
239- "ubuntu-vm" : {
240- "ip" : " 192.168.1.1" ,
241- "id" : " 100" ,
242- "startupTime" : 10 ,
243- "isVirtual" : true
244- }
245- },
246- "routes" : {
247- "pve-lxc" : {
248- "route" : [" pve" , " lxc" ],
249- "attributes" : {
250- "wakeDocker" : true
251- }
252- }
253- },
254- "records" : {
255- "jellyfin.mydomain.com" : " pve-lxc" ,
256- "*.mydomain.com" : " pve-lxc"
257- }
258- }
148+ file not found: /home/runner/work/wol-redirect/wol-redirect/examples/config/mapping-pve-docker.json
259149```
260150
261151_ You will need both [ WoL PVE] ( https://github.com/codeshelldev/wol-pve ) and [ WoL Dockerized] ( https://github.com/codeshelldev/wol-dockerized ) _
0 commit comments