summaryrefslogtreecommitdiff
path: root/config/services/web/dav/default.nix
blob: 06b963970bc313ef6a25943d2c8480402e92e37c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, ... }:

{
  services.nginx.virtualHosts.dav = {
    serverName = "dav.${config.networking.domain}";
    enableACME = true;
    forceSSL = true;
    locations."/" = {
      proxyPass = "http://localhost:5232/"; # default radicale host
      extraConfig = ''
        proxy_redirect default;
      '';
    };
  };
}