How to Hermes Desktop connect with remote gateway in House Mini Server?
I’m running Hermes Agent in Docker/Portainer and want browser-only remote access using Cloudflare Tunnel + Cloudflare Access.
I’m am trying with:
https://hermes-api.mydomain.com → http://hermes:8642
https://hermes.mydomain.com → http://hermes:9119
https://hermes-hooks.mydomain.com → http://hermes:8644
cloudflared and hermes would be on the same Docker network, so no host port publishing needed, only Docker internal routing.
Questions:
Is it valid to route different Cloudflare Tunnel hostnames to different ports on the same Docker container?
Is separate subdomain routing better for security because I can apply different Cloudflare Access policies?
Should I avoid Docker ports: and only use expose: when cloudflared is the only ingress?
How should webhooks be protected — separate hostname, secret path, header, service token?
Any concerns exposing an AI agent API/dashboard this way?
Example internal routing:
hermes-api.mydomain.com → http://hermes:8642
hermes.mydomain.com → http://hermes:9119
hermes-hooks.mydomain.com → http://hermes:8644
Is this a good architecture? As i wanna just use the remote gateway from my office