# Using letsencrypt inside Discourse

**URL:** <https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297>\
**Category:** Self-hosting\
**Tags:** letsencrypt\
**Created:** [March 22, 2019, 1:09am UTC](https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297 "2019-03-22T01:09:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![chagara](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@chagara](https://meta.discourse.org/u/chagara)\
**Post date:** [March 22, 2019, 2:52am UTC](https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297/5 "2019-03-22T02:52:28Z")

</div>

yes that’s what I have in the configuration and it seems that it creates the certificates and everything but, when looking at the nginx error.log the error pasted above comes up.

```plaintext
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  - "templates/web.ssl.template.yml"
  - "templates/web.letsencrypt.ssl.template.yml"
expose:
  - "80:80" # http
  - "443:443" # https
LETSENCRYPT_ACCOUNT_EMAIL: 'myemail@gmail.com'

```

---

_[View the full topic](https://meta.discourse.org/t/using-letsencrypt-inside-discourse/112297)._
