Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Duc-Khai committed Dec 18, 2023
1 parent c04b197 commit c87bb8f
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit c87bb8f

Please sign in to comment.