Alternative run

AI-generated summary

The discussion revolves around adding an alternative setup option in discourse-setup to allow Discourse to run directly without nginx, listening on a custom port (e.g., 3000), with automatic EXPOSE adjustments. Justman10000 suggests simplifying deployment by enabling direct access via port and reverse proxy. Jagster counters that this is already simple and doesn’t require script changes, as it’s a standard reverse proxy setup involving minor edits to app.yml. Justman10000 asks for clarification on the relevant variable in app.yml, and Jagster references a prior discussion about port exposure. pfaffman clarifies that discourse-setup is meant for basic installations, and advanced configurations like reverse proxies are expected to be handled manually, as the script isn’t designed for such use cases.

Currently discourse is hosted in Docker by nginx! but you could add an option in the discourse-setup where instead of nginx just discourse itself runs (so that discourse reaches via :3000>)… Furthermore, another option in the installer could make discourse run on a port other than 3000! The EXPOSE will be automatically adjusted accordingly! Discourse could then be reached via a reverse proxy over a domain

1 Like

Again: that can be done already. It is really trivial task.

1 Like

Yes, but it should be possible to do it without major configurations

1 Like

It is not a major configuration. It is just another typical virtual host configuration what you have to do everytime no matter what is listening at backend; WordPress, Moodle or Discourse under Docker. Plus one really minor change on app.yml: what port discourse will listen.

2 Likes

Which variable in de app.yml would this be?

1 Like

As you said here Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src") - #19 by Justman10000 you should expose only 90:80.

1 Like

discourse-setup is intended to support only the most basic installations. If you’re doing something like using a reverse proxy then it’s assumed that you know enough about how things work that it’s easier to use a text editor than run a script that asks a whole bunch of questions.

4 Likes