SSL / HTTPS

It is highly recommended that you host your app over SSL.

If you prefer using Lets Encrypt you can configure VIRTUAL_HOST variable with a valid domain name pointing to your server IP. Add the following with a proper domain name to ~/.sessionrecord/config to enable https for your recorder instance.

export VIRTUAL_HOST='r.myapp.com'

export SSL_EMAIL='<username@email.com>'

Custom Proxy Server

If you are using a different proxy server with custom SSL certificates ensure to forward the following headers to the upstream server from your proxy

  1. Host
  2. X-Real-IP
  3. X-Forwarded-For
  4. X-Forwarded-Proto

Also configure your proxy to forward websocket connections to the upstream server

Sample nginx configuration if you manage your own nginx SSL proxy server.

    location / {
        proxy_pass http://localhost:8080
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto 'https';
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }


If you need any help please don't hesitate to contact hello@uxlens.com.

results matching ""

    No results matching ""