services: smaller fixes in jitsi and postgreql

This commit is contained in:
Kabbone 2022-12-17 13:41:27 +01:00
parent 6e793fb103
commit b5ea5e6bf3
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
4 changed files with 21 additions and 21 deletions

View File

@ -23,6 +23,7 @@
imports = # For now, if applying to other system, swap files
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
[(import ../../modules/desktop/virtualisation/docker.nix)] ++ # Docker
(import ../../modules/services/server) ++ # Server Services
(import ../../modules/hardware); # Hardware devices
boot = { # Boot options

View File

@ -11,7 +11,7 @@
#
[
#./postgresql.nix
./postgresql.nix
#./gitea.nix
#./nextcloud.nix
#./matrix.nix

View File

@ -3,7 +3,7 @@
{
services.jitsi-meet = {
enable = true;
hostName = "jitsi.kabtop.de";
hostName = "meet.kabtop.de";
config = {
enableWelcomePage = false;
prejoinPageEnabled = true;
@ -16,6 +16,6 @@
};
services.jitsi-videobridge.openFirewall = true;
security.acme.email = "webmaster@kabtop.de";
security.acme.defaults.email = "webmaster@kabtop.de";
security.acme.acceptTerms = true;
}

View File

@ -10,16 +10,15 @@
package = pkgs.postgresql_14;
settings = {
max_connections = 200;
listen_addresses = 'localhost';
password_encryption = scram-sha-256;
shared_buffers = 512MB;
work_mem = 8MB;
listen_addresses = "localhost";
password_encryption = "scram-sha-256";
shared_buffers = "512MB";
work_mem = "8MB";
autovacuum_work_mem = -1;
min_wal_size = 1GB;
max_wal_size = 4GB;
log_timezone = 'Europe/Berlin';
timezone = 'Europe/Berlin';
datestyle = 'iso, dmy';
min_wal_size = "1GB";
max_wal_size = "4GB";
log_timezone = "Europe/Berlin";
timezone = "Europe/Berlin";
};
authentication = pkgs.lib.mkOverride 14 ''
local all postgres peer
@ -33,7 +32,7 @@
#host xmppdb ejabberd samehost scram-sha-256
#host prosodydb prosody samehost scram-sha-256
host keycloakdb keycloak samehost scram-sha-256
''
'';
ensureDatabases = [
"giteadb"
"nextclouddb"
@ -49,46 +48,46 @@
ensurePermissions = {
"DATABASE giteadb" = "ALL PRIVILEGES";
};
};
}
{
name = "nextcloud";
ensurePermissions = {
"DATABASE nextclouddb" = "ALL PRIVILEGES";
};
};
}
{
name = "synapse";
ensurePermissions = {
"DATABASE synapsedb" = "ALL PRIVILEGES";
};
};
}
{
name = "mautrixwa";
ensurePermissions = {
"DATABASE whatsappdb" = "ALL PRIVILEGES";
};
};
}
{
name = "mautrixtele";
ensurePermissions = {
"DATABASE telegramdb" = "ALL PRIVILEGES";
};
};
}
{
name = "mautrixsignal";
ensurePermissions = {
"DATABASE signaldb" = "ALL PRIVILEGES";
};
};
}
{
name = "keycloak";
ensurePermissions = {
"DATABASE keycloakdb" = "ALL PRIVILEGES";
};
};
}
];
};
services.postgreqlBackup.enable = true;
services.postgresqlBackup.enable = true;
}