LibreSpeed speed test added.

This commit is contained in:
Alexey Skobkin 2020-04-29 18:34:08 +03:00
parent 3c456f02d1
commit 46feab7ef4
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
4 changed files with 42 additions and 0 deletions

View File

@ -42,5 +42,6 @@ Not every stack is tested to fully work.
- [x] Proxy Socks5
- [ ] Radarr (prototype state, see sonarr)
- [ ] Sonarr (prototype state, working itself, but transmission-on-host integration didn't work due to path mismatch)
- [x] Speedtest (LibreSpeed)
- [ ] Wordpress (prototype state)
- [ ] YaCy (abandoned due to upstream code problems)

4
speedtest/.env.dist Normal file
View File

@ -0,0 +1,4 @@
# https://hub.docker.com/r/adolfintel/speedtest
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

View File

@ -0,0 +1,18 @@
version: '3.7'
services:
speedtest:
# https://hub.docker.com/r/adolfintel/speedtest
image: adolfintel/speedtest
container_name: speedtest
ports:
- "127.0.0.1:8888:80/tcp"
# See here for ENV variables:
# https://github.com/librespeed/speedtest/blob/docker/Dockerfile
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"

View File

@ -0,0 +1,19 @@
server {
listen 443 ssl http2;
server_name speed.server.tld;
#access_log /var/log/nginx/speed.server.tld.access;
error_log /var/log/nginx/speed.server.tld.error;
charset utf-8;
location / {
proxy_pass http://127.0.0.1:8888;
}
#include config/gzip.conf;
# Wildcard certificate config
#include ssl/server.tld.conf;
#include config/ssl.conf;
}