X-Download-Options NC24 Ubuntu 22.04

This worked for me.
I added that line in the server block of my nextcloud server in the nginx.conf file of my reverse proxy.
I suppose I would have achieved the same result by inserting a similar line in the apache config file on my nextcloud server, but I’d rather mess with my reverse proxy than with the nextcloud server config.