JItsi and jibri local setup

Followed the steps on Self-Hosting Guide - Debian/Ubuntu server | Jitsi Meet
and added the env ENABLE_RECORDING=1
On starting the recording it fails
Using the latest jitsi docker

Have you set PUBLIC_URL?

No the public url is not set,
Can you please help me understand why we need public url for local setup

You need to set it because Jibri will access it and unless it has a valid domain and cert it will fail to do so.