Nginx customization in openvidu v3

Hi! I have a single node on premise deployment of openVidu v3, I tested all the dashboards and the openvidu-call app, everything is working perfectly. Great job on the instructions and the easy to use installation wizard!

However, I’m having trouble connecting to this deployment from custom apps. The apps in question are the react and node tutorial applications from
openvidu-livekit-tutorials. They’re deployed on localhost, and they’re only working if they’re pointing to the openvidu-local-deployment, but when I’m trying to connect them to my single node deployment, I’m getting CORS errors


To resolve the CORS errors I tried deploying the apps with same domain name as my single node deployment, so I tried customizing nginx configuration using these instructions
https://docs.openvidu.io/en/2.18.0/troubleshooting/#16-how-can-i-customize-deployed-nginx
But these are for v2 and don’t work for v3

So I have 2 questions, answering either one will resolve my issue, but if possible, I’d like both of them answered

  1. How do I allow CORS in openVidu v3 on premise single node?
  2. How do I customize nginx in openVidu v3 on premise single node in order to deploy additional apps with the same domain name, let’s say at myopenvidudomain/client-app and
    myopenvidudomain/server-app

Thanks in advance!

Turns out the CORS error was misleading. The connection was failing because I was using the wrong api key on the server side, and the browser was just interpreting it as a CORS error.
My issue is resolved, but I’m leaving this post up since the question regarding nginx customization is still valid

Hi @David_K ,

Happy to read you have been able to solve the problem.

I’m glad to hear that you were able to resolve the issue.

As for the Nginx configuration, please note that OpenVidu 3 no longer uses Nginx. Instead, OpenVidu has switched to Caddy. You can find the relevant service configuration details here.

Configuration And Administration - openVidu

1 Like