hfs 0.37.0 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/admin/assets/index-c7c100fa.js +509 -0
- package/admin/assets/index-fe2c1463.css +1 -0
- package/{frontend/assets/sha512-065c5d7c.js → admin/assets/sha512-7ecaaeed.js} +1 -1
- package/admin/index.html +4 -5
- package/frontend/assets/index-4b763f31.js +94 -0
- package/frontend/assets/index-6d4e81f7.css +1 -0
- package/{admin/assets/sha512-9a451918.js → frontend/assets/sha512-57b80c96.js} +1 -1
- package/frontend/index.html +3 -7
- package/package.json +3 -2
- package/plugins/download-counter/public/style.css +1 -1
- package/src/adminApis.js +23 -20
- package/src/api.monitor.js +3 -1
- package/src/api.plugins.js +1 -1
- package/src/api.vfs.js +1 -1
- package/src/config.js +2 -2
- package/src/connections.js +1 -0
- package/src/const.js +2 -2
- package/src/customHtml.js +54 -0
- package/src/frontEndApis.js +2 -5
- package/src/github.js +1 -1
- package/src/listen.js +15 -5
- package/src/middlewares.js +1 -1
- package/src/misc.js +29 -5
- package/src/serveGuiFiles.js +52 -13
- package/src/throttler.js +6 -5
- package/src/upload.js +23 -1
- package/admin/assets/index-3867a36f.js +0 -415
- package/admin/assets/index-a21d9024.css +0 -1
- package/frontend/assets/index-216f7ea9.css +0 -1
- package/frontend/assets/index-420a7286.js +0 -85
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# HFS: HTTP File Server
|
|
1
|
+
# HFS: HTTP File Server (version 3)
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
@@ -13,14 +13,11 @@ HFS is the best way via web to access or share files from your disk.
|
|
|
13
13
|
- **Watch** all activities in real-time.
|
|
14
14
|
- **Control bandwidth**, decide how much to give.
|
|
15
15
|
|
|
16
|
-
This project is in an early stage, few things are missing, but it already rocks!
|
|
17
|
-
|
|
18
16
|
This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
|
|
19
|
-
You won't find all previous features here (yet), but still we got:
|
|
20
17
|
|
|
21
18
|
## How does it work
|
|
22
19
|
|
|
23
|
-
- run HFS on your computer,
|
|
20
|
+
- run HFS on your computer, administration page automatically shows up
|
|
24
21
|
- select what files and folders you want to be accessible
|
|
25
22
|
- possibly create accounts and limit access to files
|
|
26
23
|
- access those files from a phone or another computer just using a browser
|
|
@@ -91,6 +88,9 @@ To download a file: open it, right-click on the "Raw" button, Save.
|
|
|
91
88
|
|
|
92
89
|
Files must be named `hfs-lang-CODE.json` (lowercase), where `CODE` is the ISO code for your language (e.g. pt-br for Brazilian).
|
|
93
90
|
|
|
91
|
+
Translation is applied automatically based on the configuration of the visitor's browser.
|
|
92
|
+
[Check the language configuration of your browser](https://gtranslate.io/detect-browser-language).
|
|
93
|
+
|
|
94
94
|
## Plug-ins
|
|
95
95
|
|
|
96
96
|
To install a plugin you just copy its folder inside `plugins` folder.
|
|
@@ -165,7 +165,6 @@ an *env* called `HFS_CONFIG`. Any relative path provided is relative to the *cwd
|
|
|
165
165
|
Syntax supports, other than simple address, `*` as wildcard and CIDR format.
|
|
166
166
|
- `plugins_config` this is a generic place where you can find/put configuration for each plugin, at least those that need configuration.
|
|
167
167
|
- `enable_plugins` if a plugin is not present here, it won't run. Defaults is `[ antibrute ]`.
|
|
168
|
-
- `custom_header` provide HTML code to be put at the top of your Frontend. Default is none.
|
|
169
168
|
- `localhost_admin` should Admin be accessed without credentials when on localhost. Default is true.
|
|
170
169
|
- `proxies` number of proxies between server and clients to be trusted about providing clients' IP addresses. Default is 0.
|
|
171
170
|
- `keep_unfinished_uploads` should unfinished uploads be deleted immediately when interrupted. Default is true.
|