I’m running haproxy infront of discourse, and haproxy needs the /shared/ssl/hostname.key & /shared/ssl/hostname.cer files to be concatenated. I can do this manually of course, but I would like to be able to add a simple cat /var/discourse/shared/ssl/hostname.key >> /var/discourse/shared/ssl/hostname.cer after the files are generated.
I attempted to add it as an exec:cmd: to the end of /var/discourse/templates/web.letsencrypt.ssl.template.yml but when I rebuilt the app I was getting git errors about unstaged changes (naturally).
I’m using this discourse/docker setup GitHub - discourse/discourse_docker: A Docker image for Discourse
TL;DR I need to cat ssl.key >> ssl.cer after the letsencrypt template generates them, what is the best way to do this?