UNPKG

web-servo

Version:

Node HTTP web server that can execute node JS scripts

52 lines 1.03 kB
{ "server": { "port": "80", "dir": "www/" }, "page": { "default": "index.html", "script": "node.js", "error": { "401": "page/401.html", "404": "page/404.html", "500": "page/500.html" } }, "url": { "not-here.html": { "alias": "test.html" }, "protected/": { "authentication": { "login": "admin", "password": "fdf5b60206183b57cd6f688ffe998396", "password-type": "hex", "crypt": "aes", "crypt-bit": "128", "crypt-key": "kilimandjaro" } }, "protected-file.html": { "authentication": { "login": "admin", "password": "secure" } } }, "log": { "access": { "enabled": true, "path": "log/access.log", "console": false }, "error": { "debug": true, "enabled": true, "path": "log/error.log", "console": true }, "warning": { "enabled": true } } }