From 6decab7661080f96d2093864a5cdbeb1fbe59369 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 19 Mar 2023 20:49:52 +0100 Subject: [PATCH] Update nginx.conf to fix security issue --- conf/nginx.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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/ {