Code-server: Allow direct access to files under a path

Created on 23 Jan 2020  路  10Comments  路  Source: cdr/code-server

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.

enhancement

Most helpful comment

I'll take care of this.

All 10 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tecosaur picture tecosaur  路  3Comments

rcarmo picture rcarmo  路  3Comments

sa7mon picture sa7mon  路  3Comments

KSXGitHub picture KSXGitHub  路  3Comments

pchecinski picture pchecinski  路  3Comments