So i set up SSH workspace using a domain name as the address. I can’t seem to get the “Preview Running Application” to load up the site - but if I open another browser tab, it loads up just fine. I think the C9 GUI is trying to go to the HTTPS domain name, and when I change it to HTTP, it fails to connect.
Is the preview feature limited to HTTPS only? Even for SSH workspaces?
If so, I presumed (I guess mistakenly) that SSH workspaces mirrored the capabilities of C9 workspaces, in that an app running over port 8080 would be forwarded through to whatever makes the preview necessary. Apparently not the case.
I think this needs to be indicated with SSH workspaces documentation because it’s not the behavior expected.
So, figured it out. My hunch was correct. The C9 GUI requires HTTPS for previewing.
It requires your SSH box serve up apps with SSL enabled. simple as that. Now, the C9 cloud workspaces, handle this transparently, but not on SSH workspaces… apparently.
You have to manually stand up something like NGINX, install a self-signed cert (or purchase one if you’re so daring), and hook everything up to forward your ports to HTTPS.
Cloud9, I love you, but if your product not going to work as expected, you should provide the documentation that gets you to where it will work as expected.
This is not documented anywhere.
Essentially, the feature is broken out-of-box, so I’m changing this to a bug - which, I imagine could be considered resolved if C9 updates the documentation regarding the requirement to set up SSL+HTTPS for the Preview function to work.
TL;DR; The “Preview Running Application” feature doesn’t work on SSH workspaces out of the box. This is not documented anywhere.