# Alternative run

**URL:** https://meta.discourse.org/t/alternative-run/263333
**Category:** Feature
**Created:** [April 30, 2023, 6:16pm UTC](https://meta.discourse.org/t/alternative-run/263333 "2023-04-30T18:16:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [April 30, 2023, 6:16pm UTC](https://meta.discourse.org/t/alternative-run/263333/1 "2023-04-30T18:16:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [April 30, 2023, 6:27pm UTC](https://meta.discourse.org/t/alternative-run/263333/2 "2023-04-30T18:27:03Z")

</div>

> [@Justman10000](#):
>
> Discourse could then be reached via a reverse proxy over a domain

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

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [April 30, 2023, 7:32pm UTC](https://meta.discourse.org/t/alternative-run/263333/3 "2023-04-30T19:32:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [April 30, 2023, 7:40pm UTC](https://meta.discourse.org/t/alternative-run/263333/4 "2023-04-30T19:40:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Justman10000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justman10000/32/252913_2.png) [@Justman10000](https://meta.discourse.org/u/Justman10000)
#### Post date: [April 30, 2023, 7:55pm UTC](https://meta.discourse.org/t/alternative-run/263333/5 "2023-04-30T19:55:22Z")

</div>

Which variable in de app.yml would this be?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [April 30, 2023, 8:09pm UTC](https://meta.discourse.org/t/alternative-run/263333/6 "2023-04-30T20:09:04Z")

</div>

As you said here [Content Security Policy: The settings of the page have blocked the loading of a resource ("script-src") - #19 by Justman10000](https://meta.discourse.org/t/content-security-policy-the-settings-of-the-page-have-blocked-the-loading-of-a-resource-script-src/262608/19) you should expose only `90:80`.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 1, 2023, 2:52pm UTC](https://meta.discourse.org/t/alternative-run/263333/7 "2023-05-01T14:52:40Z")

</div>

> [@Justman10000](#):
>
> you could add an option in the discourse-setup

`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.
