I configure wetty ,  https://github.com/krishnasrinivas/wetty, to run
behind an nginx frontend, and the nginx settings for running wetty as an
upstream proxy looks like this. I also tried guacamole and the setting
where similar.

   location /wetty {

       if ($scheme = 'http') {
           rewrite ^ https://$http_host$request_uri? permanent;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_read_timeout 43200000;

       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header Host $http_host;
       proxy_set_header X-NginX-Proxy true;

I am not quite sure what a lot of the settings do, but it has worked well
so far.

My assumption is that if xpra uses has a  '--bind-tcp=', the
nginx proxy would have the 'proxy_pass'. I don't see
the need to add an SSL option to the xpra command as nginx will be handling
the SSL, but a password may be needed for the user, which has an option for
it in the HHML interface

Does anyone have a sample nginx config for xpra?

Am I generally on the right path?.
Frank Church

shifter-users mailing list

Reply via email to