I’ve done some searching but couldn’t find much related to my question, but apologies if this has been covered somewhere and I missed it. I’m new to Caddy, but have been experimenting with it the past couple of days and have been mostly successful in working with it so far. However, I’m wondering what the best way to go about setting up a reverse proxy that would handle different protocols under one domain entry.
For instance, let’s say I’m running zwavejs2mqtt. This particular service has a web UI accessible on port 8091, and a websocket connection accessible on port 3023. Is there a way to have a single subdomain handle both? So if I were to go to https://zwjs.example.com I’d get the web UI, but ws://zwjs.example.com would connect to the websocket?
Thanks in advance.
1. Caddy version (caddy version
):
v2.4.0-beta.1
2. How I run Caddy:
a. System environment:
Docker version 20.10.3 on Ubuntu 20.04.2 LTS
b. Command:
docker-compose up
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
paste config here, replacing this text
use `caddy fmt` to make it readable
DO NOT REDACT anything except credentials
or helpers will be sad