Hello all. I'd like to run a browser from my local host "against" a remote host to run smoke tests on staging hosts. The remote host runs as a container, with the site exposed through nginx to an https location. Since the testcafe proxy ("hammerhead") runs as an http service and I can't pass a parameter to tell it to use https in the hostname, I can't find a way to proxy it through nginx (I don't want to serve it unencrypted). The best I've come up with is using an ssh tunnel;
testcafe --debug-on-fail --assertion-timeout 30000 --ports 5050,5051 --hostname localhost remote src/test/testcafe
On the local host:
ssh -p 2100 -L 5050:localhost:5050 user@server (
-p 2100 is used to access the container's sshd)
Which is more complicated than I'd like for a long term solution.
Is there any better approach?