Skip to content

Commit e7556f5

Browse files
authored
Update Env
1 parent f3f5ace commit e7556f5

File tree

3 files changed

+29
-12
lines changed

3 files changed

+29
-12
lines changed

getting-started/installation/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ Speedtest Tracker can be run on a variety of platforms including using [Docker a
66
Docker Compose is the recommended platform.
77
{% endhint %}
88

9-
### Environment Variables
10-
11-
#### Core
12-
13-
<table><thead><tr><th width="225">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>PUID</code><br><br>(required)</td><td>Used to set the user the container should run as. To find your UID run <code>id username</code> on the host machine.<br><br>- Default: <code>1000</code></td></tr><tr><td><code>PGID</code><br><br>(required)</td><td>Used to set the group the container should run as. To find your GID run <code>id username</code> on the host machine.<br><br>- Default: <code>1000</code></td></tr><tr><td><code>APP_KEY</code></td><td>Key used to encrypt and decrypt data. To create a key to persist follow the directions in the <a href="../../help/faqs.md#i-get-a-warning-on-container-start-up-that-the-app_key-is-missing">FAQ</a>.<br><br><em>Currently not used and generated at random on startup of the container</em>.</td></tr><tr><td><code>APP_DEBUG</code></td><td>Used to help narrow down issues in a running container, see <a href="../../help/faqs.md#im-getting-a-500-or-server-error-error">FAQ</a> for when to use it.<br><br>- Default: <code>false</code></td></tr><tr><td><code>DB_CONNECTION</code><br><br>(required)</td><td>Type of database to be used for storing data. Accepted values are <code>sqlite</code>, <code>mysql</code> and <code>pgsql</code>.</td></tr><tr><td><code>DB_HOST</code><br><br>(required)</td><td>FQDN or container name where the database is located.</td></tr><tr><td><code>DB_PORT</code></td><td>Port used to connect to the host where the database is located. Only needs to be defined if the database is running on a different port.<br><br>- Default: <code>3306</code> when using MySQL or MariaDB<br>- Default: <code>5432</code> when using Postgresql</td></tr><tr><td><code>DB_DATABASE</code><br><br>(required)</td><td>Name of the database.</td></tr><tr><td><code>DB_USERNAME</code><br><br>(required)</td><td>Database user used to connect to the database. Needs <code>read/write</code> access.</td></tr><tr><td><code>DB_PASSWORD</code><br><br>(required)</td><td>Password for the user specified to connect to the database.</td></tr><tr><td><code>FORCE_HTTPS</code></td><td>Enforces the user of <code>https</code> protocol when viewing the UI, port 443 must be mapped to the container for this to work.<br><br>- Default: <code>false</code></td></tr></tbody></table>
14-
15-
#### Functional
16-
17-
<table><thead><tr><th width="225">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>CONTENT_WIDTH</code></td><td>Width of the content section of each page. Can be set to any value found in the Filament <a href="https://filamentphp.com/docs/3.x/panels/configuration#customizing-the-maximum-content-width">docs</a>.<br><br>- Default: <code>7xl</code></td></tr><tr><td><code>DASHBOARD_POLLING</code></td><td>Frequency charts and stats refresh on the dashboard. Can be represented using a string in seconds or <code>false</code> to disable.<br><br>- Default: <code>60s</code></td></tr><tr><td><code>NOTIFICATION_POLLING</code></td><td>Frequency database notifications are polled. Can be represented using a string in seconds or <code>false</code> to disable.<br><br>- Default: <code>60s</code></td></tr><tr><td><code>RESULTS_POLLING</code></td><td>Frequency data refreshes in the results table. Can be represented using a string in seconds or <code>false</code> to disable.<br><br>- Default: <code>false</code></td></tr><tr><td><code>ALLOW_EMBEDS</code></td><td>Can be a comma separated list of URLs that the application will allow to be embedded in.<br><br>- Default: <code>null</code></td></tr></tbody></table>
18-
19-
***
20-
219
### Port Mapping
2210

2311
<table><thead><tr><th>Protocol</th><th data-type="number">External port (default)</th><th data-type="number">Internal port</th></tr></thead><tbody><tr><td>HTTP</td><td>80</td><td>80</td></tr><tr><td>HTTPS</td><td>443</td><td>443</td></tr></tbody></table>

getting-started/installation/installation.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Setting up your environment with Docker Compose is the recommended infrastructur
1212

1313
If you would like to provide your own SSL keys, they must be named `cert.crt` (full chain) and `cert.key` (private key), and mounted in the container folder `/config/keys`.
1414

15+
{% hint style="info" %}
16+
Complete overview of the Environment Variables can be found here
17+
[environment-variables.md](environment-variables.md "mention").
18+
{% endhint %}
19+
1520
{% tabs %}
1621
{% tab title="SQLite" %}
1722
```yaml
@@ -29,6 +34,10 @@ services:
2934
- DB_CONNECTION=sqlite
3035
- SPEEDTEST_SCHEDULE=
3136
- SPEEDTEST_SERVERS=
37+
- PRUNE_RESULTS_OLDER_THAN=
38+
- CHART_DATETIME_FORMAT=
39+
- DATETIME_FORMAT=
40+
- APP_TIMEZONE=
3241
volumes:
3342
- /path/to/data:/config
3443
- /path/to-custom-ssl-keys:/config/keys
@@ -58,6 +67,10 @@ services:
5867
- DB_PASSWORD=password
5968
- SPEEDTEST_SCHEDULE=
6069
- SPEEDTEST_SERVERS=
70+
- PRUNE_RESULTS_OLDER_THAN=
71+
- CHART_DATETIME_FORMAT=
72+
- DATETIME_FORMAT=
73+
- APP_TIMEZONE=
6174
volumes:
6275
- /path/to/data:/config
6376
- /path/to-custom-ssl-keys:/config/keys
@@ -101,6 +114,10 @@ services:
101114
- DB_PASSWORD=password
102115
- SPEEDTEST_SCHEDULE=
103116
- SPEEDTEST_SERVERS=
117+
- PRUNE_RESULTS_OLDER_THAN=
118+
- CHART_DATETIME_FORMAT=
119+
- DATETIME_FORMAT=
120+
- APP_TIMEZONE=
104121
volumes:
105122
- /path/to/data:/config
106123
- /path/to-custom-ssl-keys:/config/keys
@@ -143,6 +160,10 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
143160
-e DB_CONNECTION=sqlite \
144161
-e SPEEDTEST_SCHEDULE= \
145162
-e SPEEDTEST_SERVERS= \
163+
-e PRUNE_RESULTS_OLDER_THAN= \
164+
-e CHART_DATETIME_FORMAT= \
165+
-e DATETIME_FORMAT= \
166+
-e APP_TIMEZONE= \
146167
-v /path/to/data:/config \
147168
-v /path/to-custom-ssl-keys:/config/keys \
148169
lscr.io/linuxserver/speedtest-tracker:latest
@@ -187,6 +208,10 @@ docker run -d --name speedtest-tracker --restart unless-stopped \
187208
-e DB_PASSWORD= \
188209
-e SPEEDTEST_SCHEDULE= \
189210
-e SPEEDTEST_SERVERS= \
211+
-e PRUNE_RESULTS_OLDER_THAN= \
212+
-e CHART_DATETIME_FORMAT= \
213+
-e DATETIME_FORMAT= \
214+
-e APP_TIMEZONE= \
190215
-v /path/to/data:/config \
191216
-v /path/to-custom-ssl-keys:/config/keys \
192217
lscr.io/linuxserver/speedtest-tracker:latest

getting-started/installation/qnap.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ services:
3535
- DB_PASSWORD=password
3636
- SPEEDTEST_SCHEDULE=
3737
- SPEEDTEST_SERVERS=
38+
- PRUNE_RESULTS_OLDER_THAN=
39+
- CHART_DATETIME_FORMAT=
40+
- DATETIME_FORMAT=
41+
- APP_TIMEZONE=
3842
volumes:
3943
- /path/to-data:/config
4044
- /path/to-custom-ssl-keys:/config/keys

0 commit comments

Comments
 (0)