Mine is a DHI-NVR4108-P-4KS2 running firmware version V4.001.0000005.1, Build Date: 2021-07-13. I have had it running for a while across several firmware versions though
Not sure if you've fixed it yourself, but this was one of the top google results when I was looking. For anyone else looking, here is the nginx config I got to work, just swap <public server name> and <NVR local IP address> for your use case:
server {
# SSL configuration
listen...