diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 7f477a70..3033f54f 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -289,9 +289,9 @@ server { location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" { include /etc/nginx/conf.d/include/proxy-buffer; - rewrite /file/(.*) $1 break; + rewrite /file/(.*) $1 break; # drop the /file/ prefix from uri - proxy_pass http://127.0.0.1/$1?attachment=true&$args; + proxy_pass http://127.0.0.1/$uri?attachment=true&$args; } # include custom locations, specific to the server