2025-01-09 14:35:30 +03:00
|
|
|
{ config, ... }:
|
2025-01-09 15:38:56 +03:00
|
|
|
let
|
|
|
|
cfg = config.const.host.nginx;
|
|
|
|
in
|
2025-01-09 14:09:03 +03:00
|
|
|
{
|
2025-01-09 15:38:56 +03:00
|
|
|
"dav.${cfg.domain}" = {
|
|
|
|
inherit (cfg) sslCertificate sslCertificateKey extraConfig;
|
|
|
|
locations."/".extraConfig = cfg.allowLocal;
|
2025-01-09 14:09:03 +03:00
|
|
|
};
|
|
|
|
}
|