services.webdav.settings

NixOS option

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 in: nixos/modules/services/network-filesystems/webdav.nixView source on NixOS/nixpkgs →