xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Version 1 (modified by Chris Hills, 3 years ago) (diff)

Created initial page.


It is possible to use Xpra from behind a Nginx proxy using the HTML5 Client.


Start xpra with the following command:-

xpra start :100 --start-child=xterm --bind-tcp=

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_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/"