Use conduwuit rc for token file support
This commit is contained in:
parent
4435a5548c
commit
e47aa973bb
1 changed files with 10 additions and 1 deletions
|
@ -31,12 +31,21 @@
|
||||||
settings.global = {
|
settings.global = {
|
||||||
server_name = "stranger.systems";
|
server_name = "stranger.systems";
|
||||||
rocksdb_optimize_for_spinning_disks = true;
|
rocksdb_optimize_for_spinning_disks = true;
|
||||||
new_user_displayname_suffix = "";
|
new_user_displayname_suffix = "";
|
||||||
allow_registration = true;
|
allow_registration = true;
|
||||||
registration_token_file = "/var/lib/conduwuit/reg_token";
|
registration_token_file = "/var/lib/conduwuit/reg_token";
|
||||||
port = [6167];
|
port = [6167];
|
||||||
address = ["0.0.0.0"];
|
address = ["0.0.0.0"];
|
||||||
};
|
};
|
||||||
|
package = pkgs.conduwuit.overrideAttrs (oldAttrs: {
|
||||||
|
version = "v0.5.0-rc3";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "girlbossceo";
|
||||||
|
repo = "conduwuit";
|
||||||
|
rev = "v0.5.0-rc3";
|
||||||
|
hash = "sha256-Etzh7m1aZBwKfcS6sa+2zBzdOaZSR+yFn2pwwGTilb4=";
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
# Open the port
|
# Open the port
|
||||||
networking.firewall.allowedTCPPorts = [6167];
|
networking.firewall.allowedTCPPorts = [6167];
|
||||||
|
|
Loading…
Add table
Reference in a new issue