Compared to your OH2 configuration this one ( Nginx as reverse proxy for OH2 at non-root location - #8 by evertramos ) has a slightly different "proxy_set_header Host " entry. In post 12 in that thread configuration for paperui is mentioned.
I did not test but hopes it helps in your case.