# Use custom ssl files when install with docker compose

**URL:** <https://community.n8n.io/t/use-custom-ssl-files-when-install-with-docker-compose/2829>\
**Category:** Questions\
**Created:** [October 27, 2020, 9:40am UTC](https://community.n8n.io/t/use-custom-ssl-files-when-install-with-docker-compose/2829 "2020-10-27T09:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huuich](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/huuich/32/1115_2.png) [@huuich](https://community.n8n.io/u/huuich)\
**Post date:** [October 27, 2020, 9:40am UTC](https://community.n8n.io/t/use-custom-ssl-files-when-install-with-docker-compose/2829/1 "2020-10-27T09:40:04Z")

</div>

When install n8n follow this instruction [Server Setup | Docs](https://docs.n8n.io/reference/server-setup.html#example-setup-with-docker-compose) but I want to use custom ssl file. I follow this instructions: [Configuration | Docs](https://docs.n8n.io/reference/configuration.html#ssl) 3

```auto
export N8N_PROTOCOL=https
export N8N_SSL_KEY=/data/certs/server.key
export N8N_SSL_CERT=/data/certs/server.pem

```

But it still use traefik default cert, Have to edit docker-compose.yml (in [Server Setup | Docs](https://docs.n8n.io/reference/server-setup.html#example-setup-with-docker-compose)) to do this? I search on google the guide: [TLS - Traefik](https://doc.traefik.io/traefik/https/tls/)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [October 27, 2020, 9:45am UTC](https://community.n8n.io/t/use-custom-ssl-files-when-install-with-docker-compose/2829/2 "2020-10-27T09:45:03Z")

</div>

The main reason to use traefik is that it takes care of SSL. So if you provide your own one you can simply remove traefik and change the setup accordingly.

Is there a reason why you want to do that? We only officially support the above server-setup guide. If you want to do something else you are on your own.

---

<div class="post-metadata">

**Author:** ![huuich](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/huuich/32/1115_2.png) [@huuich](https://community.n8n.io/u/huuich)\
**Post date:** [October 27, 2020, 2:40pm UTC](https://community.n8n.io/t/use-custom-ssl-files-when-install-with-docker-compose/2829/3 "2020-10-27T14:40:11Z")

</div>

The reason I want to do that because my first server install on 17/08/2020, everything ok include ssl. But yesterday, when install to add 1 more n8n server to run subfolder, almost thing ok except ssl like below picture, I’ve back to install subdomain, not subfolder on this server, it is not success full ssl, too like below picture, I don’t know how to troubleshoot this problem. So, could you guide me how to install n8n ok with ssl (subfolder)? I install n8n on Ubuntu server 20.04.1.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/a/a65a439ded37d9a7d22795cbb71c0b0318c6f3fc.png)
