inbucket: Docker installation: Monitor doesn't seem to work

I installed inbucket from docker - the Monitor doesn’t seem to work. I only get the message Disconnected screenshot-2018-1-14 inbucket monitor

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 1
  • Comments: 20

Most upvoted comments

Hey guys, I’ve got the same problem:

  1. Run inbucket in a docker container, map web UI to port 30025
  2. Set up apache as reverse proxy at http://inbucker.example.server.org
  3. Everything works great except monitoring (http://inbucker.example.server.org/monitoring)
  4. Monitoring works if I access it by local network IP (http://192.168.1.111:30025/monitoring)

I was able to solve it by adding ProxyPass rule for /api/v1/monitor/messages

<VirtualHost *:80>
  ProxyRequests Off
  ProxyPreserveHost On
  ProxyVia full

  ProxyHTMLInterp On
  ProxyHTMLExtended On

  <proxy *>
    Order deny,allow
    Allow from all
  </proxy>

  ProxyPass /api/v1/monitor/messages ws://localhost:30080/api/v1/monitor/messages
  ProxyPassReverse /api/v1/monitor/messages ws://localhost:30080/api/v1/monitor/messages

  ProxyPass / http://localhost:30080/
  ProxyPassReverse / http://localhost:30080/

  ServerName inbucker.example.server.org
</VirtualHost>

Apache module mod_proxy_wstunnel is enabled

@jhillyerd I think it will be helpful if settings for popular web servers (apache, nginx) are presented in a inbucket documentation

I just rebuilt my routing with nginx proxy manager (https://nginxproxymanager.com/). Now it works.

From my point of view the issue is solved but it seems there are some other people who still have problems.

I can provide my solution, if anyone is interested.