V3.3.0 single node Fronted app

Hello! I’m using OpenVidu Single Node. I got an issue with Frontend app. I want to replace the standart fronted app with my custom one, but I don’t understand how to make it. I’ll be glad any help)

Hello @x3m4ikc. You have two options:

  1. Deploy on a different server

To deploy on a different server, configure your application to point to the deployed server (like wss://<domain-name>/ or https://<domain-name>/ and use the configured LIVEKIT_API_KEY and LIVEKIT_API_SECRET.

  1. Deploy on the same server

Replacing the frontend app is straightforward.

  1. Open your /opt/openvidu/config/openvidu.env file and remove the app module. For example, if you have:

    ENABLED_MODULES=observability,app
    

    Change it to:

    ENABLED_MODULES=observability
    
  2. On the VM where OpenVidu is deployed, deploy your app on port 6080. The OpenVidu deployment will reverse proxy any request to https://<domain>/ to your application on port 6080. The way you run and configure your app is up to you.

  3. Disable the webhook of the default app or configure it to point to your app’s endpoint:

    To avoid webhook log errors from the OpenVidu server, either disable the webhook or configure it to point to your application’s endpoint:

    webhook:
        api_key: ${openvidu.LIVEKIT_API_KEY:?mandatory}
        urls:
            - http://127.0.0.1:${openvidu.DEFAULT_APP_INTERNAL_PORT:?mandatory}/livekit/webhook <-- Replace this with your webhook endpoint if you use it
    

    For example, if your app has a webhook endpoint listening on port 6080 at /my-app/webhook, the configuration would be:

    webhook:
        api_key: ${openvidu.LIVEKIT_API_KEY:?mandatory}
        urls:
            - http://127.0.0.1:${openvidu.DEFAULT_APP_INTERNAL_PORT:?mandatory}/my-app/webhook
    

    If you do not use webhooks, simply remove the webhook section.


Note: If for some reason you want to deploy your app internally in a different port instead of 6080, you can change that port by changing the value of DEFAULT_APP_INTERNAL_PORT at /opt/openvidu/config/openvidu.env


I hope this clarifies the process. We should document this in a relevant section. Do you think this would clarify the process?

Best regards

1 Like

It’s working but I canged a bit livekit.yaml and openvidu.env and it’s working. Thanks a lot!