mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
Fix "Do not use 'add_header'" error
This commit is contained in:
parent
a0ce3597be
commit
74881eb87d
1 changed files with 4 additions and 4 deletions
|
@ -26,15 +26,15 @@ location __PATH__/ {
|
|||
location /assets/ {
|
||||
alias __FINAL_PATH__/web/assets/;
|
||||
autoindex off;
|
||||
expires 5m;
|
||||
add_header Cache-Control "public";
|
||||
# 300 = 5 minutes
|
||||
more_set_headers "Cache-control: public, max-age=300";
|
||||
}
|
||||
|
||||
location /fileserver/ {
|
||||
alias /home/yunohost.app/__APP__/;
|
||||
autoindex off;
|
||||
expires 1w;
|
||||
add_header Cache-Control "private, immutable";
|
||||
# 604800 = 1 week
|
||||
more_set_headers "Cache-Control: private, immutable, max-age=604800";
|
||||
try_files $uri @fileserver;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue