mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
nginx: nevermind applogos caching, nowadays nginx/browsers automatically cache static assets with etags etc ?
This commit is contained in:
parent
8823ef0a2c
commit
f248086fb6
2 changed files with 0 additions and 6 deletions
|
@ -23,9 +23,6 @@ location /yunohost/admin/ {
|
||||||
|
|
||||||
location /yunohost/admin/applogos/ {
|
location /yunohost/admin/applogos/ {
|
||||||
alias /usr/share/yunohost/applogos/;
|
alias /usr/share/yunohost/applogos/;
|
||||||
expires 1M;
|
|
||||||
# max-age in seconds, one month
|
|
||||||
add_header Cache-Control "max-age=2629746, public";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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: 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:;";
|
||||||
|
|
|
@ -15,9 +15,6 @@ location /yunohost/sso/ {
|
||||||
|
|
||||||
location /yunohost/sso/applogos/ {
|
location /yunohost/sso/applogos/ {
|
||||||
alias /usr/share/yunohost/applogos/;
|
alias /usr/share/yunohost/applogos/;
|
||||||
expires 1M;
|
|
||||||
# max-age in seconds, one month
|
|
||||||
add_header Cache-Control "max-age=2629746, public";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; object-src 'none'; img-src 'self' data:;";
|
more_set_headers "Content-Security-Policy: upgrade-insecure-requests; default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; object-src 'none'; img-src 'self' data:;";
|
||||||
|
|
Loading…
Add table
Reference in a new issue