Update webmanifest to use /BASE_PATH/ (#17310)

This commit is contained in:
leccelecce 2025-03-23 11:34:33 +00:00 committed by GitHub
parent 644faaf65b
commit e36fe79782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -313,8 +313,8 @@ http {
proxy_set_header Accept-Encoding ""; proxy_set_header Accept-Encoding "";
sub_filter_once off; sub_filter_once off;
sub_filter_types application/json; sub_filter_types application/json;
sub_filter '"start_url": "/"' '"start_url" : "$http_x_ingress_path"'; sub_filter '"start_url": "/BASE_PATH/"' '"start_url" : "$http_x_ingress_path/"';
sub_filter '"src": "/' '"src": "$http_x_ingress_path/'; sub_filter '"src": "/BASE_PATH/' '"src": "$http_x_ingress_path/';
} }
sub_filter 'href="/BASE_PATH/' 'href="$http_x_ingress_path/'; sub_filter 'href="/BASE_PATH/' 'href="$http_x_ingress_path/';

View File

@ -1,28 +1,28 @@
{ {
"name": "Frigate", "name": "Frigate",
"short_name": "Frigate", "short_name": "Frigate",
"start_url": "/", "start_url": "/BASE_PATH/",
"icons": [ "icons": [
{ {
"src": "/images/android-chrome-512x512.png", "src": "/BASE_PATH/images/android-chrome-512x512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png", "type": "image/png",
"purpose": "any" "purpose": "any"
}, },
{ {
"src": "/images/android-chrome-192x192.png", "src": "/BASE_PATH/images/android-chrome-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png", "type": "image/png",
"purpose": "any" "purpose": "any"
}, },
{ {
"src": "/images/maskable-icon.png", "src": "/BASE_PATH/images/maskable-icon.png",
"sizes": "180x180", "sizes": "180x180",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
}, },
{ {
"src": "/images/maskable-badge.png", "src": "/BASE_PATH/images/maskable-badge.png",
"sizes": "96x96", "sizes": "96x96",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"