Hi, devs!
I'm trying to make a setting to omit part of the url to the client.
https://company_name.my-domain.com/bucket/company_name/file.doc
change for:
https://company_name.my-domain.com/file.doc

I tried to do it by proxy_pass in the location with regex

location ~ ^/([^/]+)/(.*) {
set $prefix "bucket";
proxy_pass $prefix$2;
proxy_set_header Host $host;
}
How do I get this kind of configuration in nginx proxy manager?