Ok, found how to fix the issue. Just posting here in case anyone else has the same issue.
Seems that after ios 13, nginx proxy https addresses keep resolving to http instead of https due to something they are doing in ios.
Adding 'proxy_hide_header Upgrade;' to the nginx proxy manager custom configuration does the trick.