How can I update nginx.conf without resetting it on rebuild?

Hi,

I have a question - How can I update nginx.conf or discourse.conf without having it reset when the container is rebuilt?

I edit the file using nano, save it. But when I rebuild the app, the original file is there instead of the updated one. Can someone help please? :flushed:

You have to use replace commands in your app.yml to make the edits to the config files as part of the build process. There’s lots of examples in the discourse_docker repo.

7 Likes

@mpalmer Thank you so much! That solved my issue. I will try and learn more about formatting through yml.

I have just one more question if you can - which file do I need to replace the repo links in if I am using a custom repo of discourse? Is the default repo hardcoded in any conf file?

Thanks!