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
Host
X-Real-IP
X-Forwarded-For
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.