A user, CamilleRoux, is trying to set up Let’s Encrypt for a multisite configuration across two containers in Discourse. They attempted to modify the letsencrypt script using after_ssl hooks in their web_pe.yml file but found the changes weren’t applied. After troubleshooting with brahn, it was discovered that the issue stemmed from using ./launcher bootstrap instead of ./launcher rebuild, which is required for the changes to take effect. The logs confirmed the replacement was attempted but failed due to the incorrect command, and the final resolution was to use rebuild to apply the configuration changes properly.
Hi!
I tried this how to but nothing changed and /etc/runit/1.d/letsencrypt is not modified.
I’ve 2 containers (data.yml) and web.yml and want to use multisite config.
Which yml did you add the after_ssl to?
Also, one of those links about let’s encrypt describes how to inspect the logs of the script, perhaps some in there will help diagnose.
I can’t see any recent changes that would stop the regex in the from working but obviously something is not right. Is there anything unusual in the templates: of your web_pe.yml that could be altering the base ssl before the after_ssl happens?
templates:
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
Which indicate it attempts the replace but since it didn’t happen then it must have failed? I don’t know if there is any other diagnostic that can be used to determine success of fail of a pups replacement.
All I can think of is either the replace is not working or you are somehow entering the wrong container? Kind of weird, it all looks ok to me.
$ cd /var/discourse/
$ ./launcher enter web_pe
$ cat /etc/runit/1.d/letsencrypt
Am I wrong?
PS: Here is what I get when I run docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b3d5c1de8bae 7660254ef762 "/sbin/boot" 5 weeks ago Up 13 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp web_pe
4f929aed8712 e4dabeee27af "/sbin/boot" 6 weeks ago Up 13 hours data