Skip to content

Commit

Permalink
Updated docker version with 5.4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Jul 31, 2024
1 parent 687c7ee commit 2a7face
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 420 deletions.
2 changes: 1 addition & 1 deletion doc_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* The first server entry should be the local server, using the server endpoint address that a client can access.
8 changes: 3 additions & 5 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
367 changes: 0 additions & 367 deletions docker/standalone.php

This file was deleted.

Loading

0 comments on commit 2a7face

Please sign in to comment.