nginx 反向代理配置文件修改为以下代码即可:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_ssl_session_reuse off;
proxy_ssl_server_name on;
proxy_ssl_name 这里填 ssl 的域名;
proxy_ssl_protocols TLSv1.2;
proxy_set_header X-Real-IP $remote_addr;