From 241ee19e1c8c12df4d86ad86891d82a2d9df7cb0 Mon Sep 17 00:00:00 2001 From: Andrija Stevanovic Date: Wed, 11 Mar 2026 00:31:08 +0100 Subject: [PATCH] expose rabbitmq --- deploy/docker-compose.yml | 2 ++ deploy/nginx/aips-global.conf | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml index 3de064a..5a38f32 100644 --- a/deploy/docker-compose.yml +++ b/deploy/docker-compose.yml @@ -9,6 +9,8 @@ services: RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST} volumes: - rabbitmqdata:/var/lib/rabbitmq + ports: + - "15672:15672" healthcheck: test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"] interval: 10s diff --git a/deploy/nginx/aips-global.conf b/deploy/nginx/aips-global.conf index f111146..66f5478 100644 --- a/deploy/nginx/aips-global.conf +++ b/deploy/nginx/aips-global.conf @@ -20,6 +20,14 @@ server { client_max_body_size 10M; + location /rabbitmq/ { + proxy_pass http://host.docker.internal:15672/; + proxy_set_header Host $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; + } + location / { proxy_pass http://host.docker.internal:8090; proxy_set_header Host $host;