Version 2 (modified by 4 years ago) (diff) | ,
---|
Introduction
It is possible to use Xpra from behind a Nginx proxy using the HTML5 Client.
Example
Start xpra with the following command:-
xpra start :100 --start-child=xterm --bind-tcp=0.0.0.0:10010
Add the following lines to your nginx configuration within a server block:-
server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.example.com; location ^~ /xpra/ { proxy_pass http://127.0.0.1:10010/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; }
Make sure to reload the server to update the configuration.
The final step is to create the connection page. You can use the default page as a base. Look for the line:-
var server = [...]
and replace it with the line:-
var server = "www.example.com/xpra/"