I am trying to open an HTML file on my PC. code-server is being hosted on a spare PC. I can open and view the file just file in the cloud IDE, but I'm trying to view the HTML file as it would be shown on a website. I've tried navigating to "MYIPADDRESS:8080/home/MYUSERNAME/Projects/alarm-clock/index.html", but that doesn't work. It's probably a very obvious answer, but I haven't been able to find anything about it here.
There's some extensions that facilitate proxying so try those.
You'd need to setup a HTTP web server. I suppose we could handle this under another endpoint.
Thoughts @code-asher
I'll take care of this.
We should add an easy way to open files by right clicking as well.
thanks!
I recently had to make changes to the /static endpoint which made it possible to get any file on the system as long as you're authenticated. For example you can use http://<domain>/static/-/home/coder/project/index.html. Just need to add the context menu option.
context menu option.
wdym by this?
Can this issue not be closed?
Ah I was referring to your comment:
We should add an easy way to open files by right clicking as well.
Currently we don't have that right-click context menu option.
We could wrap that into https://github.com/cdr/code-server/issues/1386 though.
Moved it into https://github.com/cdr/code-server/issues/2179
Most helpful comment
I'll take care of this.