Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Duc-Khai committed Dec 18, 2023
1 parent 11d7965 commit c04b197
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,18 @@ server {
# proxy_pass http://rabbitmq/;
# }

location /rabbitmq/api/ {
rewrite ^ $request_uri;
rewrite ^/rabbitmq/api/(.*)/api/$1 break;
return 400;
proxy_pass http://rabbitmq$uri;
}
# location /rabbitmq/api/ {
# proxy_pass http://rabbitmq$uri;
# rewrite ^ $request_uri;
# rewrite ^/rabbitmq/api/(.*)/api/$1 break;
# return 400;
# }

location /rabbitmq {
rewrite ^/rabbitmq$ /rabbitmq/ permanent;
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;
Expand Down

0 comments on commit c04b197

Please sign in to comment.