services.static-web-server.configuration
NixOS option
Configuration for Static Web Server. See https://static-web-server.net/configuration/config-file/. NOTE: Don’t set “host”, “port”, or “root” here. They will be ignored. Use the top-level “listen” and “root” options instead.
type: TOML valueDefault
{ }Example
declared in: nixos/modules/services/web-servers/static-web-server.nixView source on NixOS/nixpkgs →{
general = {
directory-listing = true;
log-level = "error";
};
}