Re: proxy_pass with variable

2020-12-18 Thread Maxim Dounin
Hello! On Fri, Dec 18, 2020 at 06:37:57PM +, Jeffrey Knight wrote: > Hello ! > > I'm trying to get up a reverse proxy where my users can pass in a url of the > form > > https://my.server.com?https://some.other.server.com > > and it'll proxy to it. > > It works perfectly with this configu

proxy_pass with variable

2020-12-18 Thread Jeffrey Knight
Hello ! I'm trying to get up a reverse proxy where my users can pass in a url of the form https://my.server.com?https://some.other.server.com and it'll proxy to it. It works perfectly with this configuration with the proxy_pass target hard coded: ``` server { server_name my.server.com;

limit requests and CORS Policy

2020-12-18 Thread Ali Mohsin
Hello, I want to setup limit requests on my API server but I want separate limit to every separate link. e.g i'm requesting to /api/link1 and i'm being blocked I should be able to use /api/link2 normally if I don't exceed the limit. I have achieved this with the following code limit_req_zone $bin