Skip to content

Commit

Permalink
fix avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
aeifn committed Nov 17, 2021
1 parent 5011db2 commit 80af359
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ server {
try_files $path$webp_suffix $path =404;
}

location ^~ /_a/d/ {
root /store/public/avatars;
location /_a/d/ {
alias /store/public/avatars/d/;
add_header Vary Accept;
try_files $uri$webp_suffix $uri /d/avatar.png =404;
try_files $uri$webp_suffix $uri /avatar.png =404;
}

location ^~ /_a/h/ {
root /store/public/avatars;
location /_a/h/ {
alias /store/public/avatars/h/;
add_header Vary Accept;
try_files $uri$webp_suffix $uri /h/avatarth.png =404;
try_files $uri$webp_suffix $uri /avatarth.png =404;
}

location ^~ /files/ {
Expand Down

0 comments on commit 80af359

Please sign in to comment.