From 8b489ed40c73393ecde08edfbe3b21535020be5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 18 May 2020 20:51:35 +0100 Subject: [PATCH] Cleaned up file to fix linting issue --- conf/nginx.conf | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index fed10bb..a45f972 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,61 +7,61 @@ location / { location /front/ { alias __FINALPATH__/code/front/dist/; - expires 30d; + expires 30d; more_set_headers "Pragma: public"; more_set_headers "Cache-Control: public, must-revalidate, proxy-revalidate"; more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; more_set_headers "Referrer-Policy: strict-origin-when-cross-origin"; more_set_headers "X-Frame-Options: SAMEORIGIN"; - more_set_headers "Service-Worker-Allowed: /; + more_set_headers "Service-Worker-Allowed: /; } location /front/embed.html { - more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; + more_set_headers "Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:"; more_set_headers "Referrer-Policy: strict-origin-when-cross-origin"; - more_set_headers "X-Frame-Options: ALLOW"; + more_set_headers "X-Frame-Options: ALLOW"; more_set_headers "Pragma: public"; more_set_headers "Cache-Control: public, must-revalidate, proxy-revalidate"; - alias __FINALPATH__/code/front/dist/embed.html; - expires 30d; + alias __FINALPATH__/code/front/dist/embed.html; + expires 30d; } location /federation/ { - include __FINALPATH__/code/deploy/funkwhale_proxy.conf; - proxy_pass http://127.0.0.1:__PORT__/federation/; + include __FINALPATH__/code/deploy/funkwhale_proxy.conf; + proxy_pass http://127.0.0.1:__PORT__/federation/; } location /rest/ { - include __FINALPATH__/code/deploy/funkwhale_proxy.conf; - proxy_pass http://127.0.0.1:__PORT__/api/subsonic/rest/; + include __FINALPATH__/code/deploy/funkwhale_proxy.conf; + proxy_pass http://127.0.0.1:__PORT__/api/subsonic/rest/; } location /.well-known/ { - include __FINALPATH__/code/deploy/funkwhale_proxy.conf; - proxy_pass http://127.0.0.1:__PORT__/.well-known/; + include __FINALPATH__/code/deploy/funkwhale_proxy.conf; + proxy_pass http://127.0.0.1:__PORT__/.well-known/; } location /media/ { - alias __FINALPATH__/media/; + alias __FINALPATH__/media/; } location /_protected/media/ { - # this is an internal location that is used to serve - # audio files once correct permission / authentication - # has been checked on API side - internal; - alias __FINALPATH__/media/; + # this is an internal location that is used to serve + # audio files once correct permission / authentication + # has been checked on API side + internal; + alias __FINALPATH__/media/; } location /_protected/music/ { - internal; - alias __FINALPATH__/import/; + internal; + alias __FINALPATH__/import/; } location /staticfiles/ { - # django static files - alias __FINALPATH__/code/data/static/; + # django static files + alias __FINALPATH__/code/data/static/; }