Use davis for dav
This commit is contained in:
parent
edbef36e0e
commit
aa2d1ffcd9
8 changed files with 67 additions and 25 deletions
|
@ -1,19 +1,22 @@
|
|||
{
|
||||
{config, ...}: {
|
||||
networking.firewall.allowedTCPPorts = [8448];
|
||||
|
||||
services = {
|
||||
services = let
|
||||
domain = "matrix.henryhiles.com";
|
||||
socket = "/run/conduwuit/socket";
|
||||
in {
|
||||
conduwuit = {
|
||||
enable = true;
|
||||
group = "caddy";
|
||||
group = config.services.caddy.group;
|
||||
settings.global = {
|
||||
server_name = "henryhiles.com";
|
||||
unix_socket_path = "/run/conduwuit/socket";
|
||||
unix_socket_path = socket;
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."matrix.henryhiles.com" = {
|
||||
serverAliases = ["matrix.henryhiles.com:8448"];
|
||||
extraConfig = "reverse_proxy unix//run/conduwuit/socket";
|
||||
caddy.virtualHosts."${domain}" = {
|
||||
serverAliases = ["${domain}:8448"];
|
||||
extraConfig = "reverse_proxy unix/${socket}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue