From 1373b829b05588c34e02b6d0659fa1e8d30ed59c Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sat, 26 Nov 2022 21:27:40 +0100 Subject: [PATCH] fix: Use correct location for embedded player Part-of: --- deploy/nginx.template | 2 +- docker/nginx/conf.dev | 2 +- front/docker/funkwhale.conf.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/nginx.template b/deploy/nginx.template index 3a49f504e..0ea9d4224 100644 --- a/deploy/nginx.template +++ b/deploy/nginx.template @@ -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"; diff --git a/docker/nginx/conf.dev b/docker/nginx/conf.dev index edbf2fe36..3c3523234 100644 --- a/docker/nginx/conf.dev +++ b/docker/nginx/conf.dev @@ -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"; diff --git a/front/docker/funkwhale.conf.template b/front/docker/funkwhale.conf.template index 6ec83eeb1..e23279d55 100644 --- a/front/docker/funkwhale.conf.template +++ b/front/docker/funkwhale.conf.template @@ -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";