fix unix socket

This commit is contained in:
twoneis 2025-03-09 21:32:06 +01:00
parent c9640ad7f5
commit c855ff5bfe

View file

@ -28,8 +28,10 @@ in
services.conduwuit = { services.conduwuit = {
enable = true; enable = true;
group = "nginx";
settings.global = { settings.global = {
server_name = cfg.domain.full; server_name = cfg.domain.full;
unix_socket_path = "/run/conduwuit/socket";
allow_registration = false; allow_registration = false;
}; };
}; };
@ -37,6 +39,10 @@ in
networking.firewall.allowedTCPPorts = [8448]; networking.firewall.allowedTCPPorts = [8448];
} }
{ {
services.nginx.virtualHosts.${cfg.domain.full}.locations."/".proxyPass = "http://unix:/run/conduwuit/socket"; services.nginx.virtualHosts.${cfg.domain.full}.locations = {
"/" = {
proxyPass = "http://unix:/run/conduwuit/socket";
};
};
} }
]) ])