Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Duc-Khai committed Dec 18, 2023
1 parent 06e79df commit c345e0c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,26 @@ 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/;
# }

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/api/(.*?)/(.*) {
# proxy_pass http://rabbitmq/api/$1/%2F/$2?$query_string;
# }

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

# location ~* /rabbitmq/(.*) {
# rewrite ^/rabbitmq/(.*)$ /$1 break;
# proxy_pass http://rabbitmq/;
Expand Down

0 comments on commit c345e0c

Please sign in to comment.