hfs 0.44.0 → 0.45.0-alpha3
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 +3 -26
- package/admin/assets/index-282a6921.js +510 -0
- package/admin/assets/{sha512-d091720e.js → sha512-40c08671.js} +2 -2
- package/admin/index.html +1 -1
- package/frontend/assets/index-4fe980c3.js +94 -0
- package/frontend/assets/{sha512-96fd938f.js → sha512-bc83ec21.js} +2 -2
- package/frontend/fontello.css +4 -3
- package/frontend/fontello.woff2 +0 -0
- package/frontend/index.html +1 -1
- package/package.json +1 -1
- package/plugins/download-counter/plugin.js +13 -6
- package/src/adminApis.js +8 -0
- package/src/api.vfs.js +3 -3
- package/src/commands.js +14 -13
- package/src/config.js +1 -1
- package/src/const.js +7 -4
- package/src/customHtml.js +31 -21
- package/src/lang.js +2 -0
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-fr.json +106 -0
- package/src/langs/hfs-lang-it.json +2 -1
- package/src/listen.js +2 -2
- package/src/log.js +2 -4
- package/src/middlewares.js +12 -1
- package/src/misc.js +9 -2
- package/src/plugins.js +7 -2
- package/src/serveGuiFiles.js +6 -6
- package/src/update.js +44 -17
- package/src/util-files.js +13 -10
- package/src/vfs.js +27 -12
- package/src/watchLoad.js +4 -4
- package/admin/assets/index-ef68a7ab.js +0 -510
- package/frontend/assets/index-a3b0d6ac.js +0 -94
package/README.md
CHANGED
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
HFS is the best way via web to access or share files from your disk.
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- You be the server, share files **fresh from your disk**, with **unlimited** space and bandwidth.
|
|
10
10
|
- It's all very **fast**. Try download zipping 100GB, it starts immediately!
|
|
11
11
|
- **Easy to use**. HFS tries to detect problems and suggest solutions.
|
|
12
12
|
- Share **even a single file** with our *virtual file system*, even with a different name, all without touching the real file. Present things the way you want!
|
|
13
13
|
- **Watch** all activities in real-time.
|
|
14
14
|
- **Control bandwidth**, decide how much to give.
|
|
15
|
+
- **No intermediaries**, give a huge file to your friend without waiting for it to be uploaded on a server first.
|
|
15
16
|
|
|
16
17
|
This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
|
|
17
18
|
|
|
@@ -42,7 +43,7 @@ This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
|
|
|
42
43
|
- multi-language front-end
|
|
43
44
|
- virtual hosting (plug-in)
|
|
44
45
|
- anti-brute-force (plug-in)
|
|
45
|
-
- reverse-proxy support
|
|
46
|
+
- [reverse-proxy support](https://github.com/rejetto/hfs/wiki/Reverse-proxy)
|
|
46
47
|
|
|
47
48
|
## Installation
|
|
48
49
|
|
|
@@ -178,30 +179,6 @@ Some actions you can take for improved security:
|
|
|
178
179
|
- start antibrute plugin (it's started by default)
|
|
179
180
|
- disable "unprotected admin on localhost"
|
|
180
181
|
|
|
181
|
-
## Reverse proxy
|
|
182
|
-
|
|
183
|
-
HFS can work behind a reverse proxy. Configuration depends on what software you use, but this is an example using nginx
|
|
184
|
-
exposing HFS under the path `/files/` instead of just `/`. Adjust it to suit your needs.
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
location /files/ {
|
|
188
|
-
proxy_http_version 1.1;
|
|
189
|
-
keepalive_timeout 30;
|
|
190
|
-
proxy_buffering off;
|
|
191
|
-
proxy_redirect off;
|
|
192
|
-
proxy_max_temp_file_size 0;
|
|
193
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # forward IP address
|
|
194
|
-
proxy_set_header X-forwarded-prefix "/files"; # the location without final slash
|
|
195
|
-
client_max_body_size 0; # disable max size for uploads
|
|
196
|
-
proxy_pass http://127.0.0.1:80/;
|
|
197
|
-
}
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
This is enough, but you may want to configure generated links accordingly:
|
|
201
|
-
- go to Admin-panel > Shared files > Home > Link
|
|
202
|
-
- click the change button (right side of the field)
|
|
203
|
-
- enter the final URL of your proxy including the location
|
|
204
|
-
|
|
205
182
|
## Hidden features
|
|
206
183
|
|
|
207
184
|
- Appending `#LOGIN` to address will bring up the login dialog
|