diff --git a/nginx/default.conf b/nginx/default.conf index fdda5e5..8d993b1 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -104,16 +104,16 @@ server { proxy_pass http://portainer/api/websocket/; } - # location /rabbitmq/ { - # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - # proxy_set_header X-Forwarded-Proto $scheme; - # proxy_set_header Host $http_host; - # proxy_intercept_errors on; - # proxy_buffering off; - # proxy_redirect off; + location /rabbitmq { + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; + proxy_intercept_errors on; + proxy_buffering off; + proxy_redirect off; - # proxy_pass http://rabbitmq/; - # } + proxy_pass http://rabbitmq/; + } # location ~* /rabbitmq/(.*) { # rewrite ^/rabbitmq/(.*)$ /$1 break; @@ -126,18 +126,6 @@ server { # rewrite ^/rabbitmq/api/(.*)/api/$1 break; # return 400; # } - - location /rabbitmq/(.*) { - rewrite ^/rabbitmq/(.*)$ /$1 break; - - proxy_pass http://rabbitmq; - - proxy_buffering off; - proxy_set_header Host $http_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; - } } server {