nginx: Try to fix again the webadmin cache hell

This commit is contained in:
Alexandre Aubin 2021-11-06 17:39:46 +01:00
parent e6effd49d8
commit 74e2a51e4d

View file

@ -13,6 +13,12 @@ location /yunohost/admin/ {
deny all;
{% endif %}
location = /yunohost/admin/index.html {
etag off;
expires off;
more_set_headers "Cache-Control: no-store, no-cache, must-revalidate";
}
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; connect-src 'self' https://paste.yunohost.org wss://$host; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'; object-src 'none'; img-src 'self' data:;";
more_set_headers "Content-Security-Policy-Report-Only:";
}