- // Webserver access control list
- // Allows restrictions to be put on the list of IP addresses which have access to our web server.
- // The ACL is a comma separated list of IP subnets, where each subnet is pre-pended by either a - or a + sign.
- // A plus sign means allow, where a minus sign means deny. If a subnet mask is omitted, such as -1.2.3.4, this means
- // to deny only that single IP address. The default setting is to allow all accesses.
- // On each request the full list is traversed, and the last (!) match wins.
- // Example 1: acl = \"-0.0.0.0/0,+127.0.0.1\" ---> deny all accesses, except from 127.0.0.1
- // Example 2: acl = \"-0.0.0.0/0,+192.168.0.0/16\" ---> deny all accesses, except from the 192.168/16 subnet
- // IPv6 addresses are specified in form [a:b::c]/64
- catTOMLstring(fp, 1, "acl", "Webserver access control list.", "<valid ACL>", config.http.acl, defaults.http.acl);
- catTOMLstring(fp, 1, "port", "Ports to be used by the webserver", "list of <[ip_address:]port>", config.http.port, defaults.http.port);
- // [http.paths] section
- catTOMLsection(fp, 1, "http.paths");
- catTOMLstring(fp, 2, "webroot", "Server root on the host", "<valid path>", config.http.paths.webroot, defaults.http.paths.webroot);
- catTOMLstring(fp, 2, "webhome", "Sub-directory of the root containing the web interface", "<valid subpath>, both slashes are needed!", config.http.paths.webhome, defaults.http.paths.webhome);