mirror of
https://github.com/librespeed/speedtest
synced 2026-11-26 18:08:04 +08:00
index-modern.html refers to styling/, javascript/ and images/ as if they sat next to it, but they live under frontend/. Only docker/entrypoint.sh reconciles that, by flattening those directories into the web root, so serving the repository as it stands renders the page without stylesheet, script or logo. Point the HTML at frontend/, have the entrypoint copy that directory as-is, and move settings.json and server-list.json to the root that the page fetches them from, so the repository layout and the deployed layout are the same. Update the install instructions, which described the flattening.
LibreSpeed frontend
This directory contains the modern LibreSpeed UI assets.
Deployment
For installation and deployment, follow the top-level README.md
and DESIGN_SWITCH.md. This directory is copied as a
whole: index-modern.html loads its assets from frontend/, so the layout
here is the layout that gets served.
Configuration
The two configuration files live at the top level rather than here, because the page fetches them relative to itself:
../server-list.jsoncontains the default server list used by the modern UI.../settings.jsonoverrides selectedspeedtest_worker.jssettings.index.htmland../index-modern.htmlshow how the frontend is wired up.
Notes
- The modern frontend expects modern browser features and does not support old browsers.
- This directory does not contain the backend or results-sharing files.