El 24/6/20 a las 23:39, Ragnarok escribió:
i try to use ftelnet with my bbs
i run nginx as webserver with letscrypt cert (using acme.sh as client)
and
fixed!
i create a proxy url to the sbbs service at nginx:
location /wstelnet {
proxy_pass
https://localhost:11235;
# this magic is needed for WebSocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
}
then set the path to ftelnet:
var Options = new fTelnetOptions();
Options.Hostname = "bbs.docksud.com.ar";
Options.Port = 443;
Options.ForceWss = true;
Options.WebSocketUrlPath = '/wstelnet';
Options.Font = 'CP850';
var Client = new fTelnetClient('fTelnetContainer', Options);
and voilá!!!