by squarefoot · 4y ago · 0 comments
From the forum:
"In terms of license, you don't need an internet connection. However, Files app loads it's own Javascript, CSS and several plugins from CDN (jsdelivr.com), and this requires internet. We already have a request to allow serving all assets locally (as an option), although in your case that might not be practical as this means Files app is essentially no longer a"single file", but multiple files that you need to be included with each installation (although you could assign a global path perhaps). In any case, for now it's not possible to load Files app without internet."
This is a major turn-off IMO. One of the main points of self-hosting is that you don't rely on the outer internet. If a self-hosted service relies on externally hosted resources, does this make it partially self-hosted?
There is a use case for that. Maintainability. Drop one file to start. To delete, delete the file. To upgrade, replace the file.
For example, I really like tiddlywiki because no matter where or what, I only have to deal with and track 1 file.
It’s impressive what they’ve accomplished with just one file full of custom content. Even upgrading is possible.
I just want a glorified `autoindex on`. I don't want to manage an extra container just for that.
(I'm speaking in regards to the file viewer option, looks like there's also a file manager option on the pro version and I have a bit more mixed feeling regarding that)
There are a lot of people still doing this. Some of us have gotten away from it, but I support some people on the side that have multiple projects that still manage it this way and it works for them.
I would not want to be the one to explain to them what docker is, how it works and how to use it.
Afterwards, I just delete and that’s it.
You could use bash and be supported on almost every unix-a-like OS¹, or plain-'ol sh for even wider compatibility. You'd need to configure CGI/FCGI as well as dropping the script(s) in, but you have to do similar work for PHP/python/other if you don't already have them installed and configured for the site/directory in question.
[1] and others: it'll work with IIS if the server has a bash/sh interpreter² available
[2] plus any externals that the script relies upon, of course
First off, its already not a "single file" you need a PHP interpreter.
Secondly, you can cram the JS and CSS into a .phar file, the performance is horrible, but it's probably not noticeable in this scenario.
You can cram the JS and CSS into the PHP file itself, no phar needed. Performance change is unnoticeable on any modern machine.