X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=near-rt-ric-simulator%2Fnginx.conf;h=f21e1735c368a2058ab0f87aaffa40180b1162ae;hb=dceaf3959f4f398452cb0fcfb03372e9bc528ceb;hp=5ba9dbe34481b2863f1215cd9c9e0a7623c8ffc4;hpb=9ab67f5d44b9e5bfcafddd6ea5e0ae10f68ca110;p=sim%2Fa1-interface.git diff --git a/near-rt-ric-simulator/nginx.conf b/near-rt-ric-simulator/nginx.conf index 5ba9dbe..f21e173 100644 --- a/near-rt-ric-simulator/nginx.conf +++ b/near-rt-ric-simulator/nginx.conf @@ -37,9 +37,13 @@ http { ssl_certificate_key /usr/src/app/cert/key.crt; ssl_password_file /usr/src/app/cert/pass; + # serve dynamic requests location / { - proxy_pass http://localhost:2222; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass http://localhost:2222; } } ##