diff --git a/conf/nginx.conf b/conf/nginx.conf index 0b1cdf6..920e2c7 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -101,8 +101,12 @@ location /.well-known/ { proxy_pass http://127.0.0.1:__PORT__/.well-known/; } -location /media/ { - alias __DATADIR__/media/; +location /media/__sized__/ { + alias __DATADIR__/media/__sized__/; +} + +location /media/attachments/ { + alias __DATADIR__//media/attachments/; } location /_protected/media/ {