updated nginx config

This commit is contained in:
Darks 2023-06-07 20:53:03 +02:00
parent c770e62b54
commit bc23c00f04
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ server {
location /static {
alias /home/pc-dev/www/app/static;
try_files $uri =404;
expires 7d;
expires 10m;
add_header Cache-Control "public";
include gzip.conf;
}
@ -46,7 +46,7 @@ server {
location /avatar {
root /home/pc-dev/data;
try_files $uri /avatar/default_avatar.png =404;
expires max;
expires max; # avatars have their own cache control system
add_header Cache-Control "public";
include gzip.conf;
}
@ -55,7 +55,7 @@ server {
location /fichiers {
alias /home/pc-dev/data/fichiers;
try_files $uri =404;
expires 7d;
expires max;
add_header Cache-Control "public";
include gzip.conf;
}