services.webdav.settings

Attrset that is converted and passed as config file. Available options can be found at here.

This program supports reading username and password configuration from environment variables, so it's strongly recommended to store username and password in a separate EnvironmentFile. This prevents adding secrets to the world-readable Nix store.

Type
YAML 1.1 value
Default
{ }
Example
{
    address = "0.0.0.0";
    port = 8080;
    directory = "/srv/public";
    permissions = "R";
    users = [
      {
        username = "{env}ENV_USERNAME";
        password = "{env}ENV_PASSWORD";
      }
    ];
}
Declared
<nixpkgs/nixos/modules/services/network-filesystems/webdav.nix>