summaryrefslogtreecommitdiff
path: root/hosts/cloud/proxy/dav-htaccess.nix
blob: 79022700b1fe0859ccd1fd0b868aa7e2a1ef6269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ ... }:
{
  services.nginx.upstreams.radicale = {
    servers = {
      "10.89.88.12:5232" = { };
      "[fd31:185d:722f::12]:5232" = { };
    };
  };

  services.nginx.virtualHosts."dav.oxapentane.com" = {
    forceSSL = true;
    enableACME = true;
    locations."/" = {
      proxyPass = "http://radicale/";
    };
  };
}