I’ve solved both issues
1 – I can use https in Nginx Proxy Manager (NPM) configuration:
And I have an active connection. Thanks to the solutions mentioned here:
Nginx configuration - #7 by Arnaud and here:
UI Connection Lost - Server-Sent Events - #9 by vuchl
In Nginx Proxy Manager (NPM) it looks like this: