use instead of

This commit is contained in:
Karol Wypchlo 2020-11-26 16:10:54 +01:00
parent 701eccbb2d
commit a03c41130a
1 changed files with 2 additions and 2 deletions

View File

@ -289,9 +289,9 @@ server {
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" { location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
include /etc/nginx/conf.d/include/proxy-buffer; 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 # include custom locations, specific to the server