How can I deploy my "public assistant" to my own server and domain name?

Hi All,

After I created a public assistant, I want to know how to deploy my own assistant to my server and domain name.
I checked the GPT help and setup some nginx configutation like these:
server {
    listen 80;
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

But after I access my domian url, I got a 502 Bad Gateway error. Does anyone can help me to deploy my assistant to my website?

By the way, after this error, I updated the nginx to ssl (https) access, but still I got some error and from nginx log I got these message:

2023/11/11 02:46:34 [error] 12635#12635: *25 SSL_do_handshake() failed (SSL: error:0A000410:SSL routines::sslv3 alert handshake failure:SSL alert number 40) while SSL handshaking to upstream, client:, server:, request: “POST /xmlrpc.php HTTP/1.1”, upstream: “https://[2606:4700:4400::6812:25e4]:443/g/g-PmZicyQpI-xiao-zhi-zheng-nianxmlrpc.php”, host: “”

so, what should I do next?