I am using Caddy version 2. I am running a docker container on linux with 2 apps, one running on port 8080, and another on port 5000. I am looking for both to be under the same subdomain via a reverse_proxy, and am looking for suggestions on how to do that. I am open to making two different routes on the subdomain (ie subdomain/app1 and subdomain app2). The preferred solution would be to have a reverse proxy covering port 8080, and if route to https://subdomain/ , it would redirect to http:ipAddress:5000, which would still “displayed” as https://subdomain/. As I said though, I am open to solutions that would put each port on a different route.
current Caddy file:
subdomain.example reverse proxy ipaddress:8080
some attempted solutions:
subdomain.example reverse proxy ipaddress:8080 reverse proxy ipaddress:5000
subdomain.example reverse proxy /app1 ipaddress:8080 reverse proxy /app2 ipaddress:5000