Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ COPY results/*.php /speedtest/results/
COPY results/*.ttf /speedtest/results/

COPY *.js /speedtest/
COPY stability.html /speedtest/
COPY favicon.ico /speedtest/

COPY docker/servers.json /servers.json
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ COPY results/*.php /speedtest/results/
COPY results/*.ttf /speedtest/results/

COPY *.js /speedtest/
COPY stability.html /speedtest/
COPY favicon.ico /speedtest/

COPY docker/servers.json /servers.json
Expand Down
6 changes: 6 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rm -rf /var/www/html/*

# Copy frontend files
cp /speedtest/*.js /var/www/html/
cp /speedtest/stability.html /var/www/html/

# Copy favicon
cp /speedtest/favicon.ico /var/www/html/
Expand All @@ -25,6 +26,11 @@ else
fi


# Copy servers.json for stability page (frontend/dual modes)
if [[ "$MODE" == "frontend" || "$MODE" == "dual" ]]; then
cp /servers.json /var/www/html/servers.json
fi

# Set up backend side for standlone modes
if [[ "$MODE" == "standalone" || "$MODE" == "dual" ]]; then
cp -r /speedtest/backend/ /var/www/html/backend
Expand Down
2 changes: 1 addition & 1 deletion docker/ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function initUI(){
<img src="" id="resultsImg" />
</div>
</div>
<a href="https://github.com/librespeed/speedtest">Source code</a>
<a href="stability.html">Stability Test</a> | <a href="https://github.com/librespeed/speedtest">Source code</a>
</div>
<div id="privacyPolicy" style="display:none">
<h2>Privacy Policy</h2>
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "speedtest.js",
"scripts": {
"test": "echo \"No automated tests configured yet\" && exit 0",
"lint": "eslint speedtest.js speedtest_worker.js",
"lint:fix": "eslint --fix speedtest.js speedtest_worker.js",
"lint": "eslint speedtest.js speedtest_worker.js stability_worker.js",
"lint:fix": "eslint --fix speedtest.js speedtest_worker.js stability_worker.js",
"format": "prettier --write \"*.js\"",
"format:check": "prettier --check \"*.js\"",
"validate": "npm run format:check && npm run lint",
Expand Down Expand Up @@ -43,6 +43,8 @@
"files": [
"speedtest.js",
"speedtest_worker.js",
"stability_worker.js",
"stability.html",
"index.html",
"favicon.ico",
"backend/",
Expand Down
Loading