Skip to content

Commit

Permalink
Add Traefik configuration to Invidious Companion doc (#624)
Browse files Browse the repository at this point in the history
* Add new traefik page

* Add Traefik config on main install doc

* Typos and line break
  • Loading branch information
auralglow authored Jan 2, 2025
1 parent 40a75ec commit 6e32b3a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/companion-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ AND make sure to add these new routes into your reverse proxy, example in variou
- [NGINX](./companion-nginx.md)
- [Apache2](./companion-apache2.md)
- [Caddy](./companion-caddy.md)
- [Traefik](./companion-traefik.md)
## Update Invidious
Expand Down
27 changes: 27 additions & 0 deletions docs/companion-traefik.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Traefik reverse proxy setup with Invidious companion

This is a very basic config, assuming that you're using Traefik to manage SSL certificates for you, and Traefik is on the same server as the Invidious and companion container.
Do not forget to replace `<server_name>` with your domain.

**Invidious Setup**
```
...
labels:
- "traefik.enable=true"
- "traefik.http.routers.invidious.rule=Host(`<server_name>`) && !(Path(`/latest_version`) || PathPrefix(`/api/manifest/dash/id/`) || PathPrefix(`/videoplayback*`))"
- "traefik.http.routers.invidious.entrypoints=web-sec"
- "traefik.http.routers.invidious.tls.certresolver=le"
- "traefik.http.services.invidious.loadbalancer.server.port=3000"
...
```
**Companion Setup**
```
...
labels:
- "traefik.enable=true"
- "traefik.http.routers.invidious-companion.rule=Host(`<server_name>`) && (Path(`/latest_version`) || PathPrefix(`/api/manifest/dash/id/`) || PathPrefix(`/videoplayback*`))"
- "traefik.http.routers.invidious-companion.entrypoints=web-sec"
- "traefik.http.routers.invidious-companion.tls.certresolver=le"
- "traefik.http.services.invidious-companion.loadbalancer.server.port=8282"
...
```

0 comments on commit 6e32b3a

Please sign in to comment.