# SSL on nakama server with domain

**URL:** <https://forum.heroiclabs.com/t/ssl-on-nakama-server-with-domain/3708>\
**Category:** Client Libraries\
**Tags:** server-framework, authentication, typescript\
**Created:** [March 28, 2023, 9:22pm UTC](https://forum.heroiclabs.com/t/ssl-on-nakama-server-with-domain/3708 "2023-03-28T21:22:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yogi](https://forum.heroiclabs.com/u/yogi)\
**Post date:** [March 28, 2023, 9:22pm UTC](https://forum.heroiclabs.com/t/ssl-on-nakama-server-with-domain/3708/1 "2023-03-28T21:22:22Z")

</div>

Hello,  
I am using letencrypt for ssl the domain for nakama server. Nakama Console is working fine  
Issue 1.  
when i use nakama client js to authenticate (any method) it’s showing “ **Err connection timed out** ”.

Issue 2.  
If i give  
**socket**  
**ssl\_certificate /etc/letsenrypt/live/domainName/fullchain.pem**  
in **local.yml** (My custom config yml file)  
and run  
**sudo docker compose restart**  
**sudo docker compose down**  
but when i run below command  
**sudo docker compose up**  
It’s giving me fatal error no such file or folder but fullchain.pem file exists on given path.

Help me with these 2 issues asap

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [March 29, 2023, 3:55pm UTC](https://forum.heroiclabs.com/t/ssl-on-nakama-server-with-domain/3708/2 "2023-03-29T15:55:54Z")

</div>

Hi @yogi,

Unfortunately we’re unable to offer support for self-hosted instances of Nakama.

If you’d like to get in touch with us regarding our managed Heroic Cloud service please contact us at [sales@heroiclabs.com](mailto:sales@heroiclabs.com).

---

<div class="post-metadata">

**Author:** ![dela](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/dela/32/1489_2.png) [@dela](https://forum.heroiclabs.com/u/dela)\
**Post date:** [April 4, 2023, 8:02am UTC](https://forum.heroiclabs.com/t/ssl-on-nakama-server-with-domain/3708/3 "2023-04-04T08:02:15Z")

</div>

1: are you sure, you have the correct server name and port defined?

2:  
Since you use docker-compose, your path to your pem certificate file is IN the docker container of nakama. so if you want the container to see it, it has to be in a docker volume. i.e. the data-folder where your local.yml file is.

In production, I’m running nakama behind an nginx proxy and behind cloudflare. so i let others handle SSL for me 😉
