Such resources can be placed into the following plugin subdirs:
- ./httpdocs: javascript, css and similar, see plugins_utils.getHttpdocsDir
- ./modules: Lua modules, see plugins_utils.loadModule
- ./templates: HTML templates, see plugins_utils.renderTemplate
Now the HTTP server starts accepting requests only after
startup.lua has completed. This prevents spurius errors
from occurring during startup, e.g. #3595 .
Split the HTTP server into management and non-management (splash) servers
Implemented protection of the HTTP interface via an ACL that can be set with
- redis-cli set ntopng.prefs.http_acl_management_port "XXXX"
Where XXXX has the format +net/mask,+net/mask....
Example:
- You want the HTTP management interface be accessible only from localhost
redis-cli set ntopng.prefs.http_acl_management_port "+127.0.0.0/8"
- You want the HTTP management interface be accessible for everybody except 192.168.0.0/16
redis-cli set ntopng.prefs.http_acl_management_port "+0.0.0.0/0,-192.168.0.0/16"
Added .gitignore file for ignoring selected files
Reworked src and include paths to organize the source better
Fixed bug with invalid git version caused in some settings that do not compile code extracting it from github