Skip to content

Commit d7680e7

Browse files
authored
Merge pull request alexjustesen#23 from svenvg93/main
Add Traefik documentation
2 parents ac03ee2 + f3002c3 commit d7680e7

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

other/proxies/traefik.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
description: Setup for when using Traefik as a Reserve Proxy
3+
---
4+
5+
# Traefik Proxy
6+
7+
Traefik can be used as a Reverse Proxy in front of Speedtest Tracker when you want to expose the Dashboard publicly with a trusted certificate. You will need at add the `APP_URL` envoirment and needed labels to the docker compose have treafik apply the certificate and routing.
8+
9+
Docker-Compose:
10+
11+
```yaml
12+
version: '3.4'
13+
services:
14+
speedtest-tracker:
15+
container_name: speedtest-tracker
16+
environment:
17+
- PUID=1000
18+
- PGID=1000
19+
- DB_CONNECTION=sqlite
20+
- APP_URL=speedtest.yourdomain.com
21+
volumes:
22+
- /path/to/data:/config
23+
- /path/to-custom-ssl-keys:/config/keys
24+
labels:
25+
- "traefik.enable=true"
26+
- "traefik.http.routers.speedtest-tracker.rule=Host(`speedtest.yourdomain.com`)"
27+
- "traefik.http.routers.speedtest-tracker.entrypoints=websecure"
28+
- "traefik.http.routers.speedtest-tracker.tls=true"
29+
- "traefik.http.routers.speedtest-tracker.tls.certresolver=yourresolver"
30+
- "traefik.http.services.speedtest-tracker.loadbalancer.server.port=80"
31+
image: lscr.io/linuxserver/speedtest-tracker:latest
32+
restart: unless-stopped
33+
```
34+
35+
<table><thead><tr><th width="261">Added compose part </th><th>Description</th></tr></thead><tbody><tr><td><code>APP_URL</code></td><td>URL you want to access the WebGui on.</td></tr><tr><td><code>traefik.enable=true</code></td><td>Explicitly tell Traefik to expose this container</td></tr><tr><td><code>traefik.http.routers.speedtest-tracker.rule=Host(`speedtest.yourdomain.com`)</code></td><td>The domain the service will respond to</td></tr><tr><td><code>traefik.http.routers.speedtest-tracker.entrypoints=websecure</code></td><td>Allow request only from the predefined entry point</td></tr><tr><td><code>traefik.http.routers.speedtest-tracker.tls=true</code></td><td>When a TLS section is specified, it instructs Traefik that the current router is dedicated to HTTPS requests only</td></tr><tr><td><code>traefik.http.routers.speedtest-tracker.tls.certresolver=yourresolver</code></td><td>Explicitly tell Traefik which Certificate provider to use matching your Traefik configuration </td></tr><tr><td><code>traefik.http.services.speedtest-tracker.loadbalancer.server.port=80</code></td><td>Explicitly tell Traefik port to use to connect to the container </td></tr></tbody></table>

0 commit comments

Comments
 (0)