# Enable SSL websocket on Netbeez

**URL:** <https://community.netbeez.net/t/enable-ssl-websocket-on-netbeez/76>\
**Category:** NetBeez Dashboard/Server\
**Tags:** deployment, on-prem\
**Created:** [May 15, 2023, 2:42pm UTC](https://community.netbeez.net/t/enable-ssl-websocket-on-netbeez/76 "2023-05-15T14:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.netbeez.net/u/Axel)\
**Post date:** [May 15, 2023, 2:42pm UTC](https://community.netbeez.net/t/enable-ssl-websocket-on-netbeez/76/1 "2023-05-15T14:42:48Z")

</div>

Good morning,

I have an onPremise instance of the dashboard and physical agents deployed in other buildings. We would like to enable the SSL websocket for communications between agents and dashboard on port 443 only.

Do you know how to do to enable this feature ?

Thanks,

Axel T.

---

<div class="post-metadata">

**Author:** ![Anton](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.netbeez.net/anton/32/16_2.png) [@Anton](https://community.netbeez.net/u/Anton)\
**Post date:** [May 15, 2023, 5:57pm UTC](https://community.netbeez.net/t/enable-ssl-websocket-on-netbeez/76/2 "2023-05-15T17:57:06Z")

</div>

Hi Axel,

If you have root access to the server, then you can (as root) edit this file: `/opt/netbeez/user_data/env_files/nb-commsrv.env` and add (or replace) this line:

```auto
WEBSOCKET_DISABLED=false

```

You can then run this command to restart the communications service:

```auto
nb-docker-compose up -d --force-recreate --no-deps nb-commsrv

```

You can then verify that the websocket server is up and listening for new connections by looking for this line in `/var/log/netbeez/nb-commsrv.worker.log`

```auto
New Websocket server: true

```

I hope this helps!

Cheers,  
Anton

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.netbeez.net/u/Axel)\
**Post date:** [May 17, 2023, 10:09am UTC](https://community.netbeez.net/t/enable-ssl-websocket-on-netbeez/76/3 "2023-05-17T10:09:32Z")

</div>

Good morning Anton,

Thanks for your reply. Your solution looks like good, our agents are transmitting datas. However, one of them is down on the dashboard, we don’t know at this time if it’s a config problem or a network problem. We will conduct internal tests to find out where the problem comes from.

Thanks,  
Axel
