diff --git a/Dockerfile b/Dockerfile index 7af5bb5..f740129 100755 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ COPY docker/entrypoint.sh / # Prepare default environment variables ENV TITLE=LibreSpeed +ENV TAGLINE="No Flash, No Java, No Websockets, No Bullsh*t" ENV MODE=standalone ENV PASSWORD=password ENV TELEMETRY=false diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 8f6d989..1a99be9 100755 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -46,6 +46,7 @@ COPY docker/entrypoint.sh / # Prepare default environment variables ENV TITLE=LibreSpeed +ENV TAGLINE="No Flash, No Java, No Websockets, No Bullsh*t" ENV MODE=standalone ENV PASSWORD=password ENV TELEMETRY=false diff --git a/doc_docker.md b/doc_docker.md index 5fc0b38..cff25d7 100755 --- a/doc_docker.md +++ b/doc_docker.md @@ -33,6 +33,7 @@ services: environment: MODE: standalone #TITLE: "LibreSpeed" + #TAGLINE: "No Flash, No Java, No Websockets, No Bullsh*t" #TELEMETRY: "false" #ENABLE_ID_OBFUSCATION: "false" #REDACT_IP_ADDRESSES: "false" @@ -57,6 +58,7 @@ The test can be accessed on port 80. Here's a list of additional environment variables available in this mode: * __`TITLE`__: Title of your speed test. Default value: `LibreSpeed` +* __`TAGLINE`__: Slogan shown below the heading on the modern frontend (`index-modern.html`). Default value: `No Flash, No Java, No Websockets, No Bullsh*t` * __`USE_NEW_DESIGN`__: When set to `true`, enables the new modern frontend design. When set to `false` (default), uses the classic design. The design can also be switched using URL parameters (`?design=new` or `?design=old`). Default value: `false` * __`SERVER_LIST_URL`__: When set, both frontend designs load their server list from this URL instead of the generated or mounted `server-list.json`. This is useful if you want the containerized frontend to consume a remote shared server list. * __`TELEMETRY`__: Whether to enable telemetry or not. If enabled, you maybe want your data to be persisted. See below. Default value: `false` diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index bbf7bd9..7ede3a7 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -108,6 +108,15 @@ if [[ "$MODE" == "frontend" || "$MODE" == "dual" || "$MODE" == "standalone" ]]; sed -i "s/
No Flash, No Java, No Websockets, No Bullsh\\*t<\\/p>/
$TAGLINE_ESCAPED<\\/p>/g" /var/www/html/index-modern.html
+ fi
# Support legacy EMAIL env var as fallback for GDPR_EMAIL
if [ -z "$GDPR_EMAIL" ] && [ ! -z "$EMAIL" ]; then
diff --git a/tests/docker-compose-playwright.yml b/tests/docker-compose-playwright.yml
index 2575d26..b641ddc 100644
--- a/tests/docker-compose-playwright.yml
+++ b/tests/docker-compose-playwright.yml
@@ -27,9 +27,22 @@ services:
- WEBPORT=8080
- USE_NEW_DESIGN=true
- 'TITLE=Grüße "Tempo" ''Österreich'''
+ - 'TAGLINE=No "Flash",