Merge pull request #818 from sstidl/feat/add-pwa-manifest
Some checks failed
Docker / e2e (push) Has been cancelled
Docker / build (./Dockerfile, , ghcr.io/${{ github.repository }}) (push) Has been cancelled
Docker / build (./Dockerfile.alpine, -alpine, ghcr.io/${{ github.repository }}) (push) Has been cancelled

feat: add installable PWA metadata
This commit is contained in:
sstidl 2026-07-20 22:56:57 +02:00 committed by GitHub
commit 7e10d1eb96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 38 additions and 1 deletions

View file

@ -27,6 +27,8 @@ COPY index-modern.html /speedtest/
COPY config.json /speedtest/
COPY stability.html /speedtest/
COPY favicon.ico /speedtest/
COPY manifest.webmanifest /speedtest/
COPY images/ /speedtest/images/
COPY docker/entrypoint.sh /

View file

@ -37,6 +37,8 @@ COPY index-modern.html /speedtest/
COPY config.json /speedtest/
COPY stability.html /speedtest/
COPY favicon.ico /speedtest/
COPY manifest.webmanifest /speedtest/
COPY images/ /speedtest/images/
COPY docker/entrypoint.sh /

View file

@ -41,8 +41,10 @@ cp /speedtest/stability.html /var/www/html/
cp /speedtest/config.json /var/www/html/
cp /speedtest/design-switch.js /var/www/html/
# Copy favicon
# Copy PWA metadata and icons
cp /speedtest/favicon.ico /var/www/html/
cp /speedtest/manifest.webmanifest /var/www/html/
cp -r /speedtest/images /var/www/html/
# Set custom webroot on alpine
if is_alpine; then

BIN
images/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
images/icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -3,6 +3,9 @@
<head>
<link rel="shortcut icon" href="favicon.ico">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="images/icon-192.png">
<meta name="theme-color" content="#000000">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<meta charset="UTF-8" />
<script type="text/javascript" src="speedtest.js"></script>

View file

@ -7,6 +7,9 @@
<meta name="description"
content="Free and Open Source Speedtest. Run it right now in your browser, or self-host on a PHP, Golang, Rust or Node server. License: LGPL." />
<link rel="shortcut icon" href="images/favicon.svg" />
<link rel="manifest" href="manifest.webmanifest" />
<link rel="apple-touch-icon" href="images/icon-192.png" />
<meta name="theme-color" content="#000000" />
<script type="text/javascript" src="speedtest.js"></script>
<script type="text/javascript">
// Set this to a different URL to load the server list from another location.

View file

@ -3,6 +3,9 @@
<head>
<link rel="shortcut icon" href="favicon.ico">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="images/icon-192.png">
<meta name="theme-color" content="#000000">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<meta charset="UTF-8" />
<script type="text/javascript" src="design-switch.js"></script>

20
manifest.webmanifest Normal file
View file

@ -0,0 +1,20 @@
{
"name": "LibreSpeed",
"short_name": "LibreSpeed",
"start_url": "./",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#000000",
"icons": [
{
"src": "images/icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "images/icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}

View file

@ -50,6 +50,8 @@
"stability.html",
"index.html",
"favicon.ico",
"manifest.webmanifest",
"images/",
"backend/",
"examples/",
"results/"