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

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2468>
environments/review-docs-2173-fg9d5z/deployments/18018
Georg Krause 2023-06-12 15:02:25 +02:00 zatwierdzone przez Marge
rodzic da2d3ee7f1
commit 8698f2d17c
4 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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;
}
}

Wyświetl plik

@ -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;
}
}
}

Wyświetl plik

@ -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;
}
}