diff --git a/web-proxy/configs/default.conf b/web-proxy/configs/default.conf index be53a90af2..22c8f06a3e 100644 --- a/web-proxy/configs/default.conf +++ b/web-proxy/configs/default.conf @@ -59,7 +59,9 @@ server { } location /mrv-sender/ { - proxy_pass http://mrv-sender:3005/; + resolver 127.0.0.11 valid=600s; + set $target http://mrv-sender:3005/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; @@ -68,7 +70,9 @@ server { } location /topic-viewer/ { - proxy_pass http://topic-viewer:3006/; + resolver 127.0.0.11 valid=600s; + set $target http://topic-viewer:3006/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; @@ -86,7 +90,9 @@ server { } location /mongo-admin { - proxy_pass http://mongo-express:8081; + resolver 127.0.0.11 valid=600s; + set $target http://mongo-express:8081; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; diff --git a/web-proxy/configs/demo.conf b/web-proxy/configs/demo.conf index 8b1130c8cc..ec3b617fd5 100644 --- a/web-proxy/configs/demo.conf +++ b/web-proxy/configs/demo.conf @@ -59,7 +59,9 @@ server { } location /mrv-sender/ { - proxy_pass http://${MRV_SENDER_HOST}:${MRV_SENDER_PORT}/; + resolver 127.0.0.11 valid=600s; + set $target http://${MRV_SENDER_HOST}:${MRV_SENDER_PORT}/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; @@ -68,7 +70,9 @@ server { } location /topic-viewer/ { - proxy_pass http://${TOPIC_VIEWER_HOST}:${TOPIC_VIEWER_PORT}/; + resolver 127.0.0.11 valid=600s; + set $target http://${TOPIC_VIEWER_HOST}:${TOPIC_VIEWER_PORT}/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; diff --git a/web-proxy/configs/local.conf b/web-proxy/configs/local.conf index d5f04f8f72..a2bd7944f1 100644 --- a/web-proxy/configs/local.conf +++ b/web-proxy/configs/local.conf @@ -59,7 +59,9 @@ server { } location /mrv-sender/ { - proxy_pass http://mrv-sender:3005/; + resolver 127.0.0.11 valid=600s; + set $target http://mrv-sender:3005/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; @@ -68,7 +70,9 @@ server { } location /topic-viewer/ { - proxy_pass http://topic-viewer:3006/; + resolver 127.0.0.11 valid=600s; + set $target http://topic-viewer:3006/; + proxy_pass $target; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr;