mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
Update old.nginx.conf
This commit is contained in:
parent
8b12f931a6
commit
87275a7ad7
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ if ($args ~ ver=) {
|
|||
set $cacheControl max-age=31536000;
|
||||
}
|
||||
|
||||
if ($uri ~ ^(\/|.*\/|.*\.html)$) {
|
||||
set $cacheControl no-cache;
|
||||
}
|
||||
|
||||
more_set_headers "Cache-Control: $cacheControl";
|
||||
set $styleSrc "'unsafe-inline' 'self' https://${main_domain}";
|
||||
set $connectSrc "'self' https://${main_domain} blob: wss://${api_domain} https://${sandbox_domain}";
|
||||
|
|
Loading…
Reference in a new issue