# Recording shows nginx 403 error

**URL:** <https://openvidu.discourse.group/t/recording-shows-nginx-403-error/4398>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [January 24, 2023, 3:33pm UTC](https://openvidu.discourse.group/t/recording-shows-nginx-403-error/4398 "2023-01-24T15:33:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glen\_Elkins1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/glen_elkins1/32/1975_2.png) [@Glen\_Elkins1](https://openvidu.discourse.group/u/Glen_Elkins1)\
**Post date:** [January 24, 2023, 3:33pm UTC](https://openvidu.discourse.group/t/recording-shows-nginx-403-error/4398/1 "2023-01-24T15:33:19Z")

</div>

I’m getting a strange issue with recording mp4 files, i have just moved servers and the config isn’t really any different but when the recording is saved on the server all i see is an nginx message saying 403 as per screenshot below.

This is directly opening the saved mp4

![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/1/1262e88de32a7e9741facd3168f1f485cca502d3.png)

**UPDATE**

It seems when i set ALLOWED\_ACCESS\_TO\_DASHBOARD= to prevent dashboard access to anyone other than people connected to our vpn the recording doesn’t work! Why would blocking the dashboard cause a 403 image to be in the video?

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [January 24, 2023, 4:09pm UTC](https://openvidu.discourse.group/t/recording-shows-nginx-403-error/4398/2 "2023-01-24T16:09:36Z")

</div>

Because the dashboard itself is used as a frontend to record the sessions.

You have two possible solutions:

1. You need to add the public IP of the server to `ALLOWED_ACCESS_TO_DASHBOARD`.

2. Another possibility is to use OPENVIDU\_RECORDING\_COMPOSED\_URL to:

Regards.

---

<div class="post-metadata">

**Author:** ![Glen\_Elkins1](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/glen_elkins1/32/1975_2.png) [@Glen\_Elkins1](https://openvidu.discourse.group/u/Glen_Elkins1)\
**Post date:** [January 24, 2023, 4:52pm UTC](https://openvidu.discourse.group/t/recording-shows-nginx-403-error/4398/3 "2023-01-24T16:52:51Z")

</div>

Ok I didn’t expect the dashboard to be used for that.

So is the CE version the free one I’m currently using? I’ll be upgrading to pro at some point.

One thing that I don’t like as well is, if someone accesses the vidu server url in the browser it shows an open vidu screen, can I get rid of that? I don’t want any access to the public to anything like that, maybe have it redirect to the website instead?

**UPDATE**

Ok so i tried adding this OPENVIDU\_RECORDING\_COMPOSED\_URL=[https://localhost/dashboard/](https://localhost/dashboard/) to .env and it didn’t work!

I have also tried adding the server public ip to the allowed list and that also doesn’t work, i am using cloudflare would that cause an issue?

**UPDATE 2**

So i ran a curl request to the dashboard on the server and this is what i get:

> curl [https://localhost/dashboard](https://localhost/dashboard)
> 
> curl: (60) SSL: no alternative certificate subject name matches target host name ‘localhost’
> 
> More details here: [curl - SSL CA Certificates](https://curl.se/docs/sslcerts.html)
> 
> curl failed to verify the legitimacy of the server and therefore could not
> 
> establish a secure connection to it. To learn more about this situation and
> 
> how to fix it, please visit the web page mentioned above.

**UPDATE 3**

Ok so i added all of cloudflare’s ip ranges and that seemed to work!
