mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
Fix nginx config for Chrome
This commit is contained in:
parent
bd88ba17de
commit
c666372f94
1 changed files with 16 additions and 17 deletions
|
@ -8,24 +8,23 @@ location / {
|
||||||
location /front/ {
|
location /front/ {
|
||||||
alias __FINALPATH__/code/front/dist/;
|
alias __FINALPATH__/code/front/dist/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
more_set_headers Pragma public;
|
more_set_headers "Pragma: public";
|
||||||
more_set_headers Cache-Control "public, must-revalidate, proxy-revalidate";
|
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 "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 "Referrer-Policy: strict-origin-when-cross-origin";
|
||||||
more_set_headers X-Frame-Options "SAMEORIGIN";
|
more_set_headers "X-Frame-Options: SAMEORIGIN";
|
||||||
more_set_headers Service-Worker-Allowed "/";
|
more_set_headers "Service-Worker-Allowed: /;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /front/embed.html {
|
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 "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;
|
alias __FINALPATH__/code/front/dist/embed.html;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
more_set_headers Pragma public;
|
|
||||||
more_set_headers Cache-Control "public, must-revalidate, proxy-revalidate";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /federation/ {
|
location /federation/ {
|
||||||
|
|
Loading…
Reference in a new issue