fix unix socket
This commit is contained in:
parent
c9640ad7f5
commit
c855ff5bfe
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue