1
0
Fork 0
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:
OniriCorpe 2023-09-11 23:25:56 +02:00
parent a0ce3597be
commit 74881eb87d

View file

@ -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;
}