Redirect from http to https and proxy_pass on NGINX

Example

nginx.conf

snginx.conf