# How should I enable letsencrypt while discourse is beside other websites

**URL:** https://meta.discourse.org/t/how-should-i-enable-letsencrypt-while-discourse-is-beside-other-websites/58107
**Category:** Self-hosting
**Created:** [February 28, 2017, 6:26pm UTC](https://meta.discourse.org/t/how-should-i-enable-letsencrypt-while-discourse-is-beside-other-websites/58107 "2017-02-28T18:26:53Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [February 28, 2017, 8:22pm UTC](https://meta.discourse.org/t/how-should-i-enable-letsencrypt-while-discourse-is-beside-other-websites/58107/4 "2017-02-28T20:22:13Z")

</div>

> [@hnaseri](#):
>
> If you are already using web.socketed.template.yml, because you host other websites via port 80 on the same server, stop. You should be using a Let’s Encrypt client on the host system;
> 
> can someone elaborate what should we do in this situation?

I also followed those guides and was puzzled until I realized that it basically means, I don’t need to do anything because my outer NGINX is already taking care of SSL (there is also an inner NGINX running in the docker container but you don’t have to do anything with that one in your setup. Or rather: it doesn’t have to know anything about SSL, which is why you’re supposed to remove `"templates/web.ssl.template.yml"` from your `app.yml`).

I’m not sure it’s helpful when I say that you “don’t have to do anything” because of course you have to setup your outer NGINX according to the guide you linked:

> [@Run other websites on the same machine as Discourse](https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247/1):
>
> For an HTTPS site, make /etc/nginx/sites-enabled/discourse.conf look like this:

But once you’ve done that, you’re fine.

For a better understanding: the `discourse.conf` becomes part of the `nginx.conf` and it basically tells NGINX that all traffic going to your discourse forum should also be SSL encrypted.

---

_[View the full topic](https://meta.discourse.org/t/how-should-i-enable-letsencrypt-while-discourse-is-beside-other-websites/58107)._
