fix: Make sure the old embed URLs are still working

environments/review-docs-merge-hoc7bt/deployments/18064
Georg Krause 2023-06-16 16:09:32 +02:00
rodzic b16ffeb946
commit 446cff7941
4 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -0,0 +1 @@
Make sure embed codes generated before 1.3.0 are still working

Wyświetl plik

@ -96,7 +96,7 @@ server {
try_files $uri $uri/ /index.html;
}
location = /embed.html {
location ~ "/(front/)?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,11 +88,11 @@ http {
expires 1d;
}
location = /embed.html {
location ~ "/(front/)?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";
proxy_pass http://funkwhale-front;
proxy_pass http://funkwhale-front/embed.html;
expires 1d;
}

Wyświetl plik

@ -61,7 +61,7 @@ server {
try_files $uri $uri/ /index.html;
}
location = /embed.html {
location ~ "/(front/)?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";