fix: Make sure the SPA Manifest is fetched using the right protocol

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2468>
This commit is contained in:
Georg Krause 2023-06-12 15:02:25 +02:00 committed by Marge
parent da2d3ee7f1
commit 8698f2d17c
4 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1 @@
Make sure the SPA Manifest is fetched using the right protocol (#2151)

View File

@ -163,6 +163,7 @@ server {
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
# If the reverse proxy is terminating SSL, nginx gets confused and redirects to http, hence the full URL
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
}
}

View File

@ -163,7 +163,8 @@ http {
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
# If the reverse proxy is terminating SSL, nginx gets confused and redirects to http, hence the full URL
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
}
}
}

View File

@ -128,6 +128,7 @@ server {
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
# If the reverse proxy is terminating SSL, nginx gets confused and redirects to http, hence the full URL
return 302 ${FUNKWHALE_PROTOCOL}://${FUNKWHALE_HOSTNAME}/api/v1/instance/spa-manifest.json;
}
}