mirror of
https://github.com/linuxserver/docker-librespeed.git
synced 2026-02-20 02:17:25 +08:00
Bot Updating Templated Files
This commit is contained in:
parent
d68e66dd6e
commit
6d8d0b807f
@ -68,6 +68,7 @@ docker create \
|
||||
-e PGID=1000 \
|
||||
-e TZ=Europe/London \
|
||||
-e PASSWORD=PASSWORD \
|
||||
-e CUSTOM_RESULTS=true `#optional` \
|
||||
-e DB_TYPE=sqlite `#optional` \
|
||||
-e DB_NAME=DB_NAME `#optional` \
|
||||
-e DB_HOSTNAME=DB_HOSTNAME `#optional` \
|
||||
@ -96,6 +97,7 @@ services:
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- PASSWORD=PASSWORD
|
||||
- CUSTOM_RESULTS=true #optional
|
||||
- DB_TYPE=sqlite #optional
|
||||
- DB_NAME=DB_NAME #optional
|
||||
- DB_HOSTNAME=DB_HOSTNAME #optional
|
||||
@ -119,6 +121,7 @@ Container images are configured using parameters passed at runtime (such as thos
|
||||
| `-e PGID=1000` | for GroupID - see below for explanation |
|
||||
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London |
|
||||
| `-e PASSWORD=PASSWORD` | Set the password for the results database. |
|
||||
| `-e CUSTOM_RESULTS=true` | (optional) enables custom results page in `/config/www/results/index.php`. |
|
||||
| `-e DB_TYPE=sqlite` | Defaults to `sqlite`, can also be set to `mysql` or `postgresql`. |
|
||||
| `-e DB_NAME=DB_NAME` | Database name. Required for mysql and pgsql. |
|
||||
| `-e DB_HOSTNAME=DB_HOSTNAME` | Database address. Required for mysql and pgsql. |
|
||||
@ -168,6 +171,8 @@ You can optionally place customized `speedtest.js` and `speedtest_worker.js` fil
|
||||
If you are setting up a mysql or postgresql database, you first need to import the tables into your database as described at the following link
|
||||
https://github.com/librespeed/speedtest/blob/master/doc.md#creating-the-database
|
||||
|
||||
To enable a custom results page set the environment variable `CUSTOM_RESULTS=true` and start (or restart) the container at least once for `/config/www/results/index.php` to be created and modify this file to your liking.
|
||||
|
||||
|
||||
## Docker Mods
|
||||
[](https://mods.linuxserver.io/?mod=librespeed "view available mods for this container.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user