11 lines
204 B
Nix
11 lines
204 B
Nix
{ config, ... }:
|
|
let
|
|
cfg = config.const.host.nginx;
|
|
in
|
|
{
|
|
"dav.${cfg.domain}" = {
|
|
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
|
|
locations."/".extraConfig = cfg.allowLocal;
|
|
};
|
|
}
|