Play local media file on dlna

Okay, so apparently, if I keep media files in a location listed in media_dirs, then HA protects them using the regular user authentication, and if I try to play them through DLNA, I get permission denied errors.

So, what’s the proper way of keeping media files locally on the HA node (docker container, by the way), and serve them in a way so that they can be played by a DLNA renderer?