LP1834208 Update proxy example configuration files
[OpenSRF.git] / examples / nginx / osrf-ws-http-proxy
index 5d5b45e..e539013 100644 (file)
@@ -20,7 +20,6 @@ server {
     location / {
         proxy_pass http://localhost:7080;
         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_set_header X-Forwarded-Proto $scheme;
         proxy_read_timeout 300s;
@@ -56,7 +55,6 @@ server {
     location / {
         proxy_pass https://localhost:7443;
         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_set_header X-Forwarded-Proto $scheme;
         proxy_read_timeout 300s;
@@ -68,7 +66,6 @@ server {
         # NGINX, the assumption is it runs w/o SSL.  Change to taste.
         proxy_pass http://localhost:7682;
 
-        proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 
         # Needed for websockets proxying.