Hello, my apologies in advance as I’m relatively new to Discourse.
When I go to the /var/discourse/ directory to run ./launcher rebuild app I have the following loop posted below.
So far the GUI is fine and I can run updates there.
I tried a few Google searches and found this thread outlining a solution. My question is can I also use the git stash and git pull commands to solve my issue with the command line?
Ensuring launcher is up to date
Updating Launcher…
Updating a1d8d0b…69d7558
error: Your local changes to the following files would be overwritten by merge:
templates/web.ssl.template.yml
Please commit your changes or stash them before you merge.
Aborting
failed to update
Launcher updated, restarting…
x86_64 arch detected.
Ensuring launcher is up to date
Updating Launcher…
Updating a1d8d0b…69d7558
error: Your local changes to the following files would be overwritten by merge:
templates/web.ssl.template.yml
Please commit your changes or stash them before you merge.
Rename template/web.ssl.template.yml to some other name (templates/my-web.ssl.template.yml) and use this in the templates: section of containers/app.yml.
And (probably) a better long-term solution would be to either add those changes to your app.yml or to put your template somewhere outside of the /var/discourse tree
Thank you, I did end up altering this file to add an additional client certificate for some additional encryption between the server and Cloudflare.
If follow the procedure to restore the template.yml file, I’ll run a rebuild to see if that solves my loop issue. Can I then make the same changes once more without too much issue? Or will this happen some time down the road and I’d have to do the same procedure?
I did save my original template as a .bak so I had the opportunity to look at the change.
I think you just want to turn off the orange cloud, get a lets encrypt certificate and turn on the orange cloud. You also want to use the cloudflare template.
Hm. I see no concerns against using own files in the templates directory, as long their names do not clash with templates, provided by discourse. I find it a convenient way to share config pieces between staging and production server, for example.
Thank you to @thoka and @pfaffman for your time and replies.
I’ve since performed the git restore.
As Jay’s pointed out that people generally don’t use custom certificates anymore, I suppose at this time I don’t see a burning need for it either.
I did another ./launcher rebuild app and the launcher ran without issue.
As an aside I simply input the cloudflare template at the bottom of app.yml as directed, but launcher came up with a syntax error. I removed it and all is fine. I never experienced an issue using Cloudflare without the cloudflare template so I’ll just carry on.