To deploy a TSRPC server on BT Panel, you need to install a Node.js project in the BT Panel.
After enabling external network mapping, you need to configure an nginx reverse proxy in the BT Panel.

By default, the nginx config file in BT Panel already contains the reverse proxy configuration. Since CORS forwarding is involved, you only need to add three lines to the config file so that it becomes:

    # HTTP反向代理相关配置开始 >>>
    location ~ /purge(/.*) {
        proxy_cache_purge cache_one $host$request_uri$is_args$args;
    }

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host:$server_port;
        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;
        add_header X-Cache $upstream_cache_status;
        proxy_set_header X-Host $host:$server_port;
        proxy_set_header X-Scheme $scheme;
        proxy_connect_timeout 30s;
        proxy_read_timeout 86400s;
        proxy_send_timeout 30s;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    proxy_pass_header Access-Control-Allow-Origin;
    proxy_pass_header Access-Control-Allow-Methods;
    proxy_pass_header Access-Control-Allow-Headers;
    }
    # HTTP反向代理相关配置结束 <<<

However, for Node.js projects created by BT Panel, the default nginx config file listens on both the project port (for example, 3000) and the web-facing port 80, which prevents the Node.js project from starting normally.
So you need to edit the nginx config file and comment out the configuration that listens on the project’s port 3000. As shown below:

server
{
    # listen 3000;
    listen 443 ssl http2 ;
    listen 80;
    server_name 121.41.91.7 sver.oeoai.com;
    index index.html index.htm default.htm default.html;
    #root /www/wwwroot/rcshop-management/dist;
    #CERT-APPLY-CHECK--START
    # 用于SSL证书申请时的文件验证相关配置 -- 请勿删除
    include /www/server/panel/vhost/nginx/well-known/dist.conf;
    #CERT-APPLY-CHECK--END
    #...