updated nginx config
This commit is contained in:
parent
c770e62b54
commit
bc23c00f04
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue