diff --git a/doc_docker.md b/doc_docker.md index a11a8edd5..358fb9f8f 100755 --- a/doc_docker.md +++ b/doc_docker.md @@ -145,4 +145,4 @@ In dual mode, LibreSpeed operates as a standalone server that can also connect t To do this: * Set the `MODE` environment variable to `dual` * Follow the `servers.json` instructions for the frontend mode -* The first server entry should be the local server, using the server endpoint address that a client can access. \ No newline at end of file +* The first server entry should be the local server, using the server endpoint address that a client can access. diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 172fd3198..6f4d80f75 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -27,11 +27,9 @@ if [ "$MODE" == "backend" ]; then fi fi -# Set up index.php for frontend-only or standalone modes -if [[ "$MODE" == "frontend" || "$MODE" == "dual" ]]; then - cp /speedtest/frontend.php /var/www/html/index.php -elif [ "$MODE" == "standalone" ]; then - cp /speedtest/standalone.php /var/www/html/index.php +# Set up unified index.php +if [ "$MODE" != "backend" ]; then + cp /speedtest/ui.php /var/www/html/index.php fi # Apply Telemetry settings when running in standalone or frontend mode and telemetry is enabled diff --git a/docker/standalone.php b/docker/standalone.php deleted file mode 100755 index 2ef5899a9..000000000 --- a/docker/standalone.php +++ /dev/null @@ -1,367 +0,0 @@ - - - - - - - - - - - -<?= getenv('TITLE') ?: 'LibreSpeed Example' ?> - - -

-
-

- - Privacy - -
-
-
-
Ping
-
-
ms
-
-
-
Jitter
-
-
ms
-
-
-
-
-
Download
- -
-
Mbit/s
-
-
-
Upload
- -
-
Mbit/s
-
-
-
- -
- -
- Source code -
- - - - diff --git a/docker/frontend.php b/docker/ui.php similarity index 83% rename from docker/frontend.php rename to docker/ui.php index 724fdc029..70e85f143 100755 --- a/docker/frontend.php +++ b/docker/ui.php @@ -3,15 +3,17 @@ - -