Add database for the Relay
This commit is contained in:
parent
8c22e153bd
commit
891f974404
1 changed files with 9 additions and 0 deletions
|
|
@ -102,6 +102,15 @@ in {
|
||||||
# turn_secret = "your secret";
|
# turn_secret = "your secret";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# PostgreSQL for the Relay
|
||||||
|
config.services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
ensureDatabases = ["discord-mautrix"];
|
||||||
|
authentication = pkgs.lib.mkOverride 10 ''
|
||||||
|
#type database DBuser auth-method
|
||||||
|
local all all trust
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80
|
80
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue