# Wrong wss url from rest api

**URL:** <https://openvidu.discourse.group/t/wrong-wss-url-from-rest-api/998>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [May 27, 2020, 8:43am UTC](https://openvidu.discourse.group/t/wrong-wss-url-from-rest-api/998 "2020-05-27T08:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simbik](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/simbik/32/518_2.png) [@Simbik](https://openvidu.discourse.group/u/Simbik)\
**Post date:** [May 27, 2020, 8:43am UTC](https://openvidu.discourse.group/t/wrong-wss-url-from-rest-api/998/1 "2020-05-27T08:43:56Z")

</div>

Hello, i configure openvidu for port 34443 with selfsigned sertificate. Then make nginx proxy with letsencrypt. I have other applications in this server proxyed by nginx, so i cant use openvidu with port 443. All works ok, but get token with REST API returns wss url with port 34443 so applications cant connect with certificate error. How i can change url, returned with API for url without port?

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [May 27, 2020, 9:02am UTC](https://openvidu.discourse.group/t/wrong-wss-url-from-rest-api/998/2 "2020-05-27T09:02:38Z")

</div>

If you have deployed OpenVidu 2.14 version, then 34443 port should be configured in HTTPS\_PORT variable in the .env file and openvidu NGINX and openvidu server will pick that port.

If you have another NGINX in your machine, it should be on other port to avoid conflicts between them.

---

<div class="post-metadata">

**Author:** ![Simbik](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/simbik/32/518_2.png) [@Simbik](https://openvidu.discourse.group/u/Simbik)\
**Post date:** [May 27, 2020, 9:04am UTC](https://openvidu.discourse.group/t/wrong-wss-url-from-rest-api/998/3 "2020-05-27T09:04:59Z")

</div>

Yes i configure port 34443 in HTTPS\_PORT, then i proxy this port with my nginx for 443 with letsencrypt sertificate, this ok. But when i make token with REST API - APi returns wss://mydomain:34443/etc…, so client cant connect with sertificate error. Its posible than api Return url without port?
