He thanks Balder!
I'm interested in Traefik because of the many possibilities in routing once you have it running. There are many ways in which you can choose to traffic data to different containers and served websites on Docker (Podman) or Kubernetes. It's a blazing fast Edge-router, easy to secure and it takes care of the necessary Let's Encrypt Certs and the automatic renewal of these. DNS-challenges are easy to set up and the 'middleware' functions are easy to implement.
It's a chore though, to go through the documentation and the answers that people give on fora when it comes to more complex setup of the reverse proxy. There are many many possibilities in how things are handled. Either you create your 'routers', 'middleware', 'certresolver(s)' and alike in a traefik.yml, which in turn you include in the docker-compose of Traefik, or you can add 'labels:' to individual docker-compose files of the containers themselves that are to be served by Traefik. You can set up 'entrypoints', 'middleware', 'routers' and more in many locations and parrallel in both TOML and YAML.
The one thing that's holding me back, besides the confusing Docs and fora, is the way in which we can guide traffic to port 4242 on the domain
mistserver.example.com/mistserver, being both the API-address and make sure that streams get delivered to 1935 on that same domain, and that the preview function on the streams works on 8080 at
mistserver.example.com/mistserver. I indeed know that you can change the listening port 8080 to a different one in the Protocol-section under HTTP in Mistserver, but you could also change the port 8080 to another number, leading to the Traefik-dashboard (if enabled) in the docker-compose.yml of the Traefik instance.
But I guess that I'd need a different 'router' and loadbalancer to port 8080 than the 'router' to 4242 together with the designated loadbalancer to 4242 (including the adding of TLS-certresolver). For now I don't know how to combine both routers in one 'labels:'-block in the docker-compose.yml of Mistserver, and be able to serve both instances of the domain
mistserver.example.com and the prefix '/mistserver'. The https 'router' is no problem and LE-cert is produced for use in the loadbalancer to port 4242, but to get it to 8080 without the TLS at the same prefix, that's the one that I can't solve...
Or, declare more 'Services:' and corresponding 'labels:' in the same docker-compose.yml of Mistserver. I don't know how to do this either, with both prefixes being the same. When splitting the domain in two parts, one being the subdomain (
mistserver.example.com) and the prefix (
mistserver.example.com/mistserver) the 'router' of the subdomain would get preference each time, because it being shorter.
Oh well, so much to learn.... Your help is appreciated and
thanks for looking into this!
Have a great day!
Michel