Hi Chad, On Thu, Dec 24, 2020 at 2:04 PM Chad Lavoie <[email protected]> wrote:
> Greetings, > > On 12/23/2020 7:10 PM, Jonathan Opperman wrote: > > > > Works perfectly fine, what is the best way to hide /minio so it will > > rather say /storage so externally > > I hide the fact that we are using minio? > > You can do that by using 'http-request set-path > %[regsub(^/storage,/minio)]' to rewrite the path that the backend sees > from what the client sent. > Thank you for the quick response, appreciate it. Tried to add it but got: parsing [/etc/haproxy/haproxy.cfg:172] : error detected in frontend 'ft_https' while parsing 'http-request set-path' rule : failed to parse sample expression <regsub(^/storage,/minio)> : unknown fetch method 'regsub'. Should it be: http-request set-path %[url,regsub(^/storage,/minio)] ? Cheers Jonathan > - Chad > >

