rustdesk / doc.rustdesk.com

Document of RustDesk
https://rustdesk.com/docs/
MIT License
399 stars 396 forks source link

Can not use nginx to reverse proxy service #108

Open kkncc opened 1 year ago

kkncc commented 1 year ago

why?

fashberg commented 1 year ago

because nginx is an http proxy, not tcp proxy

xionous commented 1 year ago

because nginx is an http proxy, not tcp proxy

Yes it is...

https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/

rustdesk commented 1 year ago

Good, let us know if you set up successfully.

fashberg commented 1 year ago

Ok, got it, but you cannot run rustdesk server behind http-nginx listening on port 443 with named-based-virtualhosting and split by /path to each service, because tcp/tls streaming has no host-header and no Path.

Instead of nginx-tcp-proxy DNAT or k8s service does the same, you need one external port for each server-port.