Radicale: Difference between revisions

imported>O8opi
mNo edit summary
Jopejoe1 (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 30: Line 30:
};
};
</syntaxhighlight>
</syntaxhighlight>
== Web Proxy examples ==
Caddy configured to proxy radicale in a subdirectory
<syntaxhighlight lang="nix">
caddy = {
  enable = true;
  extraConfig = ''
    :80 {
      redir /radicale /radicale/
      handle /radicale/* {
        uri strip_prefix /radicale
        reverse_proxy localhost:5232 {
          header_up X-Script-Name /radicale
          header_up Authorization {header.Authorization}
        }
      }
    }
  '';
}
</syntaxhighlight>
Nginx virtualhost location snippet configured to proxy radicale in a subdirectory
<syntaxhighlight lang="nix">
locations."/radicale/" = {
  proxyPass = "http://127.0.0.1:5232/";
  extraConfig = ''
    proxy_set_header X-Script-Name /radicale;
    proxy_pass_header Authorization;
  '';
};
</syntaxhighlight>


== See also ==
== See also ==
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/radicale.nix Source code of the service]
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/radicale.nix Source code of the service]
* [https://search.nixos.org/options/?query=services.radicale List of Radicale options supported by NixOS]
* [https://search.nixos.org/options?query=services.radicale List of Radicale options supported by NixOS]
 
[[Category:Server]]