Skip to content

Commit d924a80

Browse files
svenvg93gitbook-bot
authored andcommitted
GITBOOK-1: No subject
1 parent 2190226 commit d924a80

File tree

4 files changed

+82
-8
lines changed

4 files changed

+82
-8
lines changed

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* [Proxies](other/proxies/README.md)
4040
* [Cloudflare Tunnel (Zero Trust)](other/proxies/cloudflare-tunnel-zero-trust.md)
4141
* [Traefik](other/proxies/traefik.md)
42+
* [Tailscale](other/proxies/tailscale.md)
4243
* [Caching](other/caching.md)
4344
* [Commands](other/commands.md)
4445
* [Data Dictionary](other/data-dictionary.md)

other/proxies/cloudflare-tunnel-zero-trust.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* For the tunnel you want to add the Speedtest Tracker to. Click on **Edit**
99
* Go to **Public Hostname**
1010
* Click on **Add a public hostname**
11-
* Fill in the fields the following field 
11+
* Fill in the fields the following field
1212
* **Subdomain:** The subdomain you want to access the Speedtest Tracker on.
1313
* **Domain:** The domain you want to access the Speedtest Tracker on.
1414
* **Type:** Connection type to the Speedtest Tracker (http/https)
@@ -21,8 +21,6 @@ When using the container\_name Cloudflare Tunnel and Speedtest Tracker need to b
2121

2222
<figure><img src="../../.gitbook/assets/cf-tunnel.png" alt=""><figcaption></figcaption></figure>
2323

24-
25-
2624
### Docker Configuration
2725

2826
Docker-Compose:
@@ -34,12 +32,16 @@ services:
3432
environment:
3533
- PUID=1000
3634
- PGID=1000
37-
- DB_CONNECTION=sqlite
3835
- APP_KEY=
39-
- ASSET_URL=
36+
- DB_CONNECTION=sqlite
4037
- SPEEDTEST_SCHEDULE=
4138
- SPEEDTEST_SERVERS=
39+
- PRUNE_RESULTS_OLDER_THAN=
40+
- CHART_DATETIME_FORMAT=
41+
- DATETIME_FORMAT=
42+
- APP_TIMEZONE=
4243
- APP_URL=speedtest.yourdomain.com # Change this to your domain name
44+
- ASSET_URL=speedtest.yourdomain.com # Change this to your domain name
4345
volumes:
4446
- /path/to/data:/config
4547
- /path/to-custom-ssl-keys:/config/keys
@@ -48,7 +50,7 @@ services:
4850
```
4951
5052
{% hint style="info" %}
51-
Depending on your Cloudflare Tunnel configuration, you need to make use the Speedtest Tracker and Cloudflare Tunnel are on the same docker network.
53+
Depending on your Cloudflare Tunnel configuration, you need to make use the Speedtest Tracker and Cloudflare Tunnel are on the same docker network.
5254
{% endhint %}
5355
5456
<table><thead><tr><th width="291">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>ASSET_URL</code></td><td>URL used for loading all the needed assets. Need to be the same as the <code>APP_URL</code>.</td></tr></tbody></table>

other/proxies/tailscale.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Tailscale
2+
3+
Tailscale can be used as an sidecar container to access the Speedtest Tracker within your Tailnet on its own MagicDNS name.&#x20;
4+
5+
## Tailscale Auth key&#x20;
6+
7+
Generate an auth key for tailscale so the docker container can access your tailnet.
8+
9+
1. Open the [**Keys**](https://login.tailscale.com/admin/settings/keys) page of the admin console.
10+
2. Select **Generate auth key**.
11+
3. Fill out the form fields to specify characteristics about the auth key, such as the description, whether its reusable, when it expires, and device settings.
12+
4. Select **Generate key**.
13+
14+
Save this Auth Key. We will need this later on.
15+
16+
## Docker Configuration
17+
18+
Docker-Compose:
19+
20+
```yaml
21+
services:
22+
tailscale-speedtest:
23+
image: tailscale/tailscale
24+
container_name: tailscale_speedtest-tracker
25+
hostname: speedtest
26+
environment:
27+
- TS_AUTHKEY=
28+
- TS_STATE_DIR=/var/lib/tailscale
29+
- TS_USERSPACE=false
30+
volumes:
31+
- ./tailscale-traefik/state:/var/lib/tailscale
32+
- /dev/net/tun:/dev/net/tun
33+
cap_add:
34+
- net_admin
35+
- sys_module
36+
restart: unless-stopped
37+
38+
speedtest-tracker:
39+
container_name: speedtest-tracker-tailscale
40+
depends_on:
41+
- tailscale-speedtest
42+
network_mode: service:tailscale-speedtest
43+
environment:
44+
- PUID=1000
45+
- PGID=1000
46+
- APP_KEY=
47+
- DB_CONNECTION=sqlite
48+
- SPEEDTEST_SCHEDULE=
49+
- SPEEDTEST_SERVERS=
50+
- PRUNE_RESULTS_OLDER_THAN=
51+
- CHART_DATETIME_FORMAT=
52+
- DATETIME_FORMAT=
53+
- APP_TIMEZONE=
54+
- APP_URL=speedtest.yourtailnet.ts.net # Change this to your MagicDNS name
55+
- ASSET_URL=speedtest.yourtailnet.ts.net # Change this to your MagicDNS name
56+
volumes:
57+
- /path/to/data:/config
58+
- /path/to-custom-ssl-keys:/config/keys
59+
image: lscr.io/linuxserver/speedtest-tracker:latest
60+
restart: unless-stopped
61+
```
62+
63+
| Added compose part | Description |
64+
| ------------------ | --------------------------------------------------------------------------------------- |
65+
| `APP_URL` | URL you want to access the WebGui on. This will need to be the Tailscale Magic DNS name |
66+
| `ASSET_URL` | URL used for loading all the needed assets. Need to be the same as the `APP_URL`. |
67+
| `TS_AUTHKEY` | Auth key for Tailscale |

other/proxies/traefik.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ services:
1111
environment:
1212
- PUID=1000
1313
- PGID=1000
14-
- DB_CONNECTION=sqlite
1514
- APP_KEY=
16-
- ASSET_URL=
15+
- DB_CONNECTION=sqlite
1716
- SPEEDTEST_SCHEDULE=
1817
- SPEEDTEST_SERVERS=
18+
- PRUNE_RESULTS_OLDER_THAN=
19+
- CHART_DATETIME_FORMAT=
20+
- DATETIME_FORMAT=
21+
- APP_TIMEZONE=
1922
- APP_URL=speedtest.yourdomain.com # Change this to your domain name
23+
- ASSET_URL=speedtest.yourdomain.com # Change this to your domain name
2024
volumes:
2125
- /path/to/data:/config
2226
- /path/to-custom-ssl-keys:/config/keys

0 commit comments

Comments
 (0)