cybre:uranther #012.018 is a user on cybre.space. You can follow them or interact with them if you have an account anywhere in the fediverse.
cybre:uranther #012.018 @uranther

So I have successfully installed and with . Now the hard part seems configuring with .

/cc @matrix @eff

· Web · 0 · 0

Say I am running two web servers using on the same machine (same domain name), do I need to run only once and then configure the two docker images with those certs?

Running the official LetsEncrypt docker image while the other servers are running gives a bind error on port 80 even though I am exposing to host 8080 and 8008 :psyduck:

/cc @matrix

@uranther are both matrix and media goblin expecting to be front-end servers, or would proxying them through a third docker image be fine?

@uranther fwiw my strategy there would be to run a third docker that gets the world-visible port 443, handles LE, and proxies vhosts to the other two domains

@bonzoesc can I setup subdomains here for MediaGoblin and Matrix and forward to 8008 and another for 8080?

@uranther yeah; what I have is caddy running on world-visible tcp 443, proxying to mastodon's thin on a docker-private network tcp 3000, and i just realized i should hook up streaming on tcp 4000 as well

@bonzoesc Nice! Thanks for the help. I will play with this config some more.

@uranther ps that Caddyfile should be a bit better now that streaming works; i found it a lot easier than nginx but it's not ubiquitous yet

@uranther I went with it because the default configuration sets up LE automatically

@bonzoesc an nginx proxy with Let'sEncrypt would work.. but what about the two port numbers? Must they be in addition to port 80?

@uranther The cert that letsencrypt gives you for a domain can be used for services running on different ports as long as they have the same domain name. So just copy the LE cert to the two dockers. LE needs to be able to listen on port 80 to establish the cert though.

@matrix @uranther Also there are a bunch of ways to validate if you don’t have access to port 80 on a particular host.