-
hi, I have an application that needs to provide reverse proxy to two similar machine that host a basic web page with ws that uses port 5300. So my nginx server's URL is https://thisserver and my machines will have http://ip1 and http://ip2 and both machines will also use port 5300 for websocket. So in nginx, here is my setup
I tried to map the above config to YARP but I don't know how to do the if ($http_origin... part, can anyone help? currently my settings are as below, I can only do for one IP
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured that out by using RouteHeader matching |
Beta Was this translation helpful? Give feedback.
I figured that out by using RouteHeader matching