News for hackers. Stuff that matters.
Re:Servefolder.dev by aussieguy1234 on Sunday December 19, 2021 @04:46AM (#29612638)
If you have node, "serve" does pretty much the same thing. `npm install -g serve` then `serve .`

If you want a public URL you could try my side project, `expose` (https://expose.sh) in conjunction with `serve`.

Re:Servefolder.dev by videogreg93 on Sunday December 19, 2021 @06:33AM (#29613140)
Is this basically ngrok?
Re:Servefolder.dev by aussieguy1234 on Sunday December 19, 2021 @04:04PM (#29618396)
Yep, it's similar. I believe it can expose more than just web apps, for example SSH. I'm focusing my project on the web and making it easier to use.
Re:Servefolder.dev by mft_ on Sunday December 19, 2021 @05:35AM (#29612843)
This looks very interesting - thanks for developing/posting.

Would it be feasible to allow different domains to be used - maybe for a fee?

Re:Servefolder.dev by aussieguy1234 on Sunday December 19, 2021 @04:01PM (#29618376)
Yep that is an option, you can subscribe at https://dashboard.expose.sh, set your api key (copy and paste what's shown) then run `expose` like `expose 80 as mysite.expose.sh`
Re:Servefolder.dev by kevincox on Saturday December 18, 2021 @09:10PM (#29610720)
It would be really nice if the files were served from the root. IDK exactly how that could be implemented. Maybe put the UI under an "unlikely" url. But then once you upload a lot of people will have a hard time finding the UI again to change the contents.
Re:Servefolder.dev by pie_py on Sunday December 19, 2021 @01:55AM (#29612018)
$ python -m http.server

done.

Re:Servefolder.dev by nijave on Sunday December 19, 2021 @09:22AM (#29614149)
PHP has a dev server, too
Re:Servefolder.dev by 651549846546 on Saturday December 18, 2021 @05:03PM (#29608988)
Cool, Not seen the browser directory access permission before!

Is there any browser behaviour different than when using a file:// uri?

Re:Servefolder.dev by admax88qqq on Saturday December 18, 2021 @08:02PM (#29610360)
I forgot the specifics but a fair amount of things no longer work from file URLs.

There's some much stricter rules on what your can access via fetch() if I recall.

Re:Servefolder.dev by slmjkdbtl on Saturday December 18, 2021 @08:11PM (#29610417)
I think mainly CORS stuff, e.g. you can't use images loaded with file:// for WebGL texture, but also curious if more
Re:Servefolder.dev by nijave on Sunday December 19, 2021 @09:21AM (#29614138)
I think there might be some script loading rules, too. That prevents JavaScript from an internet loaded site accessing local content
Re:Servefolder.dev by johnhenry on Saturday December 18, 2021 @02:09PM (#29607517)
This is really cool and useful. I hope you post this again and more people recognize it.
Re:Servefolder.dev by aghilmort on Sunday December 19, 2021 @03:13PM (#29617867)
super interesting -- are you exploring paid option + custom domain to make public?