Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Duc-Khai committed Dec 18, 2023
1 parent c87bb8f commit 06e79df
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,24 @@ 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/api/(.*?)/(.*) {
proxy_pass http://rabbitmq/api/$1/%2F/$2?$query_string;
}

location /rabbitmq/(.*) {
rewrite ^/rabbitmq/(.*)$ /$1 break;
proxy_pass http://rabbitmq;
}

# location ~* /rabbitmq/(.*) {
Expand Down

0 comments on commit 06e79df

Please sign in to comment.