Enable Directory Listing On Specific Directory

Is there any “easy way” to " Enable Directory Listing On Specific Directory" for one specific domain (and if posible also only list *.{heic,jpg}?

I was looking at:
cat /etc/nginx/conf.d/local.conf
and not sure if it gets OVERWRITTEN on next update/upgrade or change in domain settings …

Thanx in advance

I don´t know how to do what you’re asking, but I do know that the file you mentioned will be overwritten by the nightly maintenance task if you change it.