# Discourse-app container starts then silently stops

**URL:** https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [September 13, 2022, 7:58am UTC](https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859 "2022-09-13T07:58:45Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![jlgarnier](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jlgarnier](https://meta.discourse.org/u/jlgarnier)
#### Post date: [September 16, 2022, 8:06am UTC](https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859/21 "2022-09-16T08:06:48Z")

</div>

Right! I’ve dumbly applied the config in the page listed above, compared to other nginx config files and couldn’t understand why the proxy wouldn’t listen to 80:443 for discourse… 😕

Here’s what I expected to see:

```plaintext
server {
	listen 80;
	server_name discourse.mydomain.com;
    return 301 https://$host$request_uri; # routing to https
}

server {
	listen 443 ssl
	listen [::]:443 ssl;
	server_name discourse.mydomain.com;

	ssl_certificate /etc/letsencrypt/live/discourse.mydomain.com/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/discourse.mydomain.com/privkey.pem;

	root /var/www/html;

	# Add index.php to the list if you are using PHP
	index index.html index.htm index.nginx-debian.html;

	location / {
      proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:; # using socket
      proxy_set_header Host $http_host;
      proxy_http_version 1.1;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_set_header X-Real-IP $remote_addr;
	}
}

```

NPM: I’ve followed @pfaffman’s advide and read [Use Nginx Proxy Manager to manage multiple sites with Discourse](https://meta.discourse.org/t/using-nginx-proxy-manager-to-manage-multiple-sites-with-discourse/206344), so I’ve evaluated the option to install NPM, but this looks overkill…

Thanks to all for your help!

---

_[View the full topic](https://meta.discourse.org/t/discourse-app-container-starts-then-silently-stops/238859)._
