hfs 0.50.0-alpha1 → 0.50.0-beta4

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.
Files changed (42) hide show
  1. package/README.md +3 -2
  2. package/admin/assets/{index-c618ba7d.js → index-3cd8ca5e.js} +394 -137
  3. package/admin/assets/index-8b462908.css +1 -0
  4. package/{frontend/assets/sha512-90bb0108.js → admin/assets/sha512-8adbc3db.js} +1 -1
  5. package/admin/index.html +2 -2
  6. package/central.json +5 -0
  7. package/frontend/assets/index-6024d2c6.js +94 -0
  8. package/frontend/assets/index-b90320b6.css +1 -0
  9. package/{admin/assets/sha512-1ee27408.js → frontend/assets/sha512-56c6d063.js} +1 -1
  10. package/frontend/index.html +2 -2
  11. package/package.json +3 -4
  12. package/src/adminApis.js +7 -0
  13. package/src/api.file_list.js +3 -0
  14. package/src/api.monitor.js +8 -4
  15. package/src/api.vfs.js +13 -14
  16. package/src/apiMiddleware.js +12 -12
  17. package/src/block.js +1 -1
  18. package/src/config.js +1 -1
  19. package/src/connections.js +12 -1
  20. package/src/const.js +3 -2
  21. package/src/cross.js +8 -2
  22. package/src/customHtml.js +1 -1
  23. package/src/frontEndApis.js +3 -2
  24. package/src/geo.js +61 -0
  25. package/src/index.js +5 -3
  26. package/src/langs/embedded.js +2 -1
  27. package/src/langs/hfs-lang-hu.json +134 -0
  28. package/src/langs/hfs-lang-it.json +1 -0
  29. package/src/langs/hfs-lang-nl.json +4 -3
  30. package/src/langs/hfs-lang-ru.json +3 -2
  31. package/src/listen.js +1 -1
  32. package/src/middlewares.js +14 -1
  33. package/src/misc.js +2 -18
  34. package/src/nat.js +3 -1
  35. package/src/plugins.js +2 -3
  36. package/src/serveFile.js +7 -3
  37. package/src/serveGuiFiles.js +1 -2
  38. package/src/util-http.js +36 -16
  39. package/src/vfs.js +2 -3
  40. package/admin/assets/index-f3fd8783.css +0 -1
  41. package/frontend/assets/index-83cd0389.js +0 -94
  42. package/frontend/assets/index-b50efd06.css +0 -1
package/README.md CHANGED
@@ -40,6 +40,7 @@ This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
40
40
  - real-time monitoring of connections
41
41
  - [show some files](https://github.com/rejetto/hfs/discussions/270)
42
42
  - speed throttler
43
+ - geographic firewall
43
44
  - admin web interface
44
45
  - multi-language front-end
45
46
  - virtual hosting (plug-in)
@@ -172,9 +173,9 @@ While this project focuses on ease of use, we care about security.
172
173
 
173
174
  Some actions you can take for improved security:
174
175
  - use https, better if using a proper certificate, even free with [Letsencrypt](https://letsencrypt.org/).
175
- - 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"
176
+ - have a domain (ddns is ok too), configure it in "Internet" page, and enable "Accept requests only using domain"
176
177
  - install rejetto/antidos plugin
177
- - start antibrute plugin (but it's started by default)
178
+ - ensure "antibrute" plugin is running
178
179
  - disable "unprotected admin on localhost"
179
180
 
180
181
  ## Hidden features