hfs 0.45.0 → 0.46.0
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 +7 -16
- package/admin/assets/index-963c15a5.js +517 -0
- package/{frontend/assets/sha512-b32d8af7.js → admin/assets/sha512-471fbd54.js} +2 -2
- package/admin/index.html +1 -1
- package/frontend/assets/index-c0f02a72.js +94 -0
- package/frontend/assets/index-f2f8fd6b.css +1 -0
- package/{admin/assets/sha512-c0389c0d.js → frontend/assets/sha512-7dcc825b.js} +2 -2
- package/frontend/fontello.css +1 -1
- package/frontend/index.html +2 -3
- package/package.json +4 -3
- package/plugins/download-counter/plugin.js +3 -1
- package/plugins/download-counter/public/main.js +3 -2
- package/plugins/list-uploader/plugin.js +21 -0
- package/plugins/list-uploader/public/main.js +27 -0
- package/plugins/vhosting/plugin.js +6 -3
- package/src/adminApis.js +9 -3
- package/src/api.auth.js +4 -4
- package/src/api.file_list.js +4 -5
- package/src/api.monitor.js +7 -5
- package/src/api.plugins.js +57 -13
- package/src/api.vfs.js +2 -1
- package/src/apiMiddleware.js +4 -0
- package/src/commands.js +11 -0
- package/src/config.js +9 -5
- package/src/connections.js +1 -1
- package/src/const.js +4 -3
- package/src/frontEndApis.js +33 -1
- package/src/github.js +65 -33
- package/src/index.js +4 -4
- package/src/lang.js +3 -2
- package/src/langs/embedded.js +2 -1
- package/src/langs/hfs-lang-fr.json +16 -4
- package/src/langs/hfs-lang-it.json +11 -4
- package/src/langs/hfs-lang-ru.json +16 -4
- package/src/langs/hfs-lang-vi.json +116 -0
- package/src/log.js +50 -47
- package/src/middlewares.js +10 -3
- package/src/plugins.js +181 -98
- package/src/serveFile.js +13 -5
- package/src/serveGuiFiles.js +8 -10
- package/src/throttler.js +11 -6
- package/src/update.js +1 -4
- package/src/upload.js +26 -9
- package/src/util-files.js +25 -6
- package/src/vfs.js +6 -12
- package/src/zip.js +2 -2
- package/admin/assets/index-101f19c9.js +0 -510
- package/frontend/assets/index-59572489.css +0 -1
- package/frontend/assets/index-5aeff3af.js +0 -94
package/README.md
CHANGED
|
@@ -116,14 +116,6 @@ In the Languages section of the Admin-panel you can install additional language
|
|
|
116
116
|
|
|
117
117
|
If your language is missing, please consider [translating yourself](https://github.com/rejetto/hfs/wiki/Translation).
|
|
118
118
|
|
|
119
|
-
## Plug-ins
|
|
120
|
-
|
|
121
|
-
You can use the Admin-panel to manage your plugins and install new ones.
|
|
122
|
-
|
|
123
|
-
Under the hood, installing a plugin just means copying its folder inside `plugins` folder. Deleting will uninstall it.
|
|
124
|
-
|
|
125
|
-
HFS will ignore all plugin folders with `-disabled` at the end of the name.
|
|
126
|
-
|
|
127
119
|
## Why you should upgrade from HFS 2.x to 3
|
|
128
120
|
|
|
129
121
|
As you can see from the list of features, we already have some goods that you cannot find in HFS 2.
|
|
@@ -153,7 +145,7 @@ Configuration can be done in several ways
|
|
|
153
145
|
- passing via command line at start in the form `--NAME VALUE`
|
|
154
146
|
- directly editing the `config.yaml` file. As soon as you save it is reloaded and changes are applied
|
|
155
147
|
|
|
156
|
-
`NAME` stands for the property name that you want to change. See the complete list
|
|
148
|
+
`NAME` stands for the property name that you want to change. See the [complete list](config.md).
|
|
157
149
|
|
|
158
150
|
### Where is it stored
|
|
159
151
|
|
|
@@ -166,7 +158,7 @@ You can decide a different cwd passing `--cwd SOME_FOLDER` parameter at command
|
|
|
166
158
|
You can decide also a different file for config by passing `--config SOME_FILE`, or inside an *env* called `HFS_CONFIG`.
|
|
167
159
|
Any relative path provided is relative to the *cwd*.
|
|
168
160
|
|
|
169
|
-
[Check details about config file format](
|
|
161
|
+
[Check details about config file format](config.md).
|
|
170
162
|
|
|
171
163
|
## Security
|
|
172
164
|
|
|
@@ -179,15 +171,14 @@ While this project focuses on ease of use, we care about security.
|
|
|
179
171
|
Some actions you can take for improved security:
|
|
180
172
|
- use https, better if using a proper certificate, even free with [Letsencrypt](https://letsencrypt.org/).
|
|
181
173
|
- have a domain (ddns is ok too), start vhosting plugin, configure your domain, enable "Block requests that are not using any of the domains above"
|
|
182
|
-
- install
|
|
183
|
-
- start antibrute plugin (it's started by default)
|
|
174
|
+
- install rejetto/antidos plugin
|
|
175
|
+
- start antibrute plugin (but it's started by default)
|
|
184
176
|
- disable "unprotected admin on localhost"
|
|
185
177
|
|
|
186
178
|
## Hidden features
|
|
187
179
|
|
|
188
180
|
- Appending `#LOGIN` to address will bring up the login dialog
|
|
189
181
|
- Appending ?lang=CODE to address will force a specific language
|
|
190
|
-
- env `SESSION_DURATION` can be set to any number of seconds. Default is 1 day.
|
|
191
182
|
- right/ctrl/command click on toggle-all checkbox will invert each checkbox state
|
|
192
183
|
|
|
193
184
|
## Contribute
|
|
@@ -211,14 +202,14 @@ There are several ways to contribute
|
|
|
211
202
|
If you'd like to make a change yourself in the code, please first open an "issue" or "discussion" about it,
|
|
212
203
|
so we'll try to cooperate and understand what's the best path for it.
|
|
213
204
|
|
|
214
|
-
- [Make a plugin](
|
|
205
|
+
- [Make a plugin](dev-plugins.md)
|
|
215
206
|
|
|
216
207
|
A plugin can change the look (a theme), and/or introduce a new functionality.
|
|
217
208
|
|
|
218
209
|
## More
|
|
219
210
|
|
|
220
|
-
- [Build yourself](
|
|
211
|
+
- [Build yourself](dev.md)
|
|
221
212
|
|
|
222
213
|
- [License](https://github.com/rejetto/hfs/blob/master/LICENSE.txt)
|
|
223
214
|
|
|
224
|
-
- [To-do list](
|
|
215
|
+
- [To-do list](todo.md)
|