Skip to content

SSH Tunnelling Guide

This file explains how to access the private server-only UI through an SSH tunnel. The make targets resolve the SSH connection details from the Vault-backed inventory.

The only private UI is Mailpit (UI and API on remote 127.0.0.1:8025). Production has no Prometheus or Grafana (lean monitoring phase C).

Mailpit is private on purpose. The public demo uses application-owned endpoints such as GET /api/v1/users/me/email-events instead of exposing the inbox API on the public hostname.

Open the tunnel

make ansible-tunnel-mailpit

Then open http://localhost:8025.

Stop the tunnel

Press Ctrl-C in the terminal that runs it (preferred), or:

make ansible-tunnel-kill-mailpit

To find a tunnel started elsewhere: ps aux | grep 'ssh -N', then kill <PID>.

Check that the tunnel is active

lsof -iTCP:8025 -sTCP:LISTEN

If the tunnel is down, the browser fails to connect.