Thank you for this cool solution!
This snippet is working for Nextcloud 21.0.3 too allow all; log_not_found off; access_log off; } # ............. code...
Separate names with a comma.