Bot Updating Templated Files

This commit is contained in:
LinuxServer-CI 2020-09-26 11:15:30 -04:00
parent d68e66dd6e
commit 6d8d0b807f

View File

@ -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
[![Docker Mods](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=mods&query=%24.mods%5B%27librespeed%27%5D.mod_count&url=https%3A%2F%2Fraw.githubusercontent.com%2Flinuxserver%2Fdocker-mods%2Fmaster%2Fmod-list.yml)](https://mods.linuxserver.io/?mod=librespeed "view available mods for this container.")