fix: Use correct location for embedded player

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2039>
environments/review-docs-fix-b-0p3p4g/deployments/16232
Georg Krause 2022-11-26 21:27:40 +01:00 zatwierdzone przez Marge
rodzic e24e43b684
commit 1373b829b0
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -96,7 +96,7 @@ server {
try_files $uri $uri/ /index.html;
}
location = /front/embed.html {
location = /embed.html {
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";

Wyświetl plik

@ -88,7 +88,7 @@ http {
expires 1d;
}
location = /front/embed.html {
location = /embed.html {
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";

Wyświetl plik

@ -61,7 +61,7 @@ server {
try_files $uri $uri/ /index.html;
}
location = /front/embed.html {
location = /embed.html {
add_header Content-Security-Policy "connect-src https: http: 'self'; default-src 'self'; script-src 'self' unpkg.com 'unsafe-inline' 'unsafe-eval'; style-src https: http: 'self' 'unsafe-inline'; img-src https: http: 'self' data:; font-src https: http: 'self' data:; object-src 'none'; media-src https: http: 'self' data:";
add_header Referrer-Policy "strict-origin-when-cross-origin";