Ws-scrcpy File
This is the cleanest method for advanced users.
Run ws-scrcpy on localhost only (BIND_ADDRESS=127.0.0.1) and put it behind Nginx with Basic Auth or OAuth. ws-scrcpy
Nginx Config Snippet:
server
listen 80;
server_name myphone.example.com;
# HTTPS is mandatory for security
return 301 https://$host$request_uri;
server
listen 443 ssl;
server_name myphone.example.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location /
# Basic Authentication
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
# Essential for WebSockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
Set up a Raspberry Pi with a USB hub and 4 Android phones. Run ws-scrcpy on the Pi, expose it via Nginx reverse proxy with basic authentication. Your QA team can access the lab from any browser. This is the cleanest method for advanced users
