Add server module and new browser

This commit is contained in:
thiloho
2023-09-25 15:50:20 +02:00
parent 4650b468e0
commit 0def8bfab1
2 changed files with 23 additions and 10 deletions

View File

@@ -57,6 +57,28 @@
};
};
};
hedgedoc = {
enable = true;
settings = {
port = 3300;
domain = "collab.thilohohlt.com";
useSSL = true;
db = {
dialect = "postgres";
host = "/run/postgresql";
database = "hedgedoc";
};
};
};
postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "dcbot" "hedgedoc" ];
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
};
security = {
@@ -69,16 +91,6 @@
'';
};
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "dcbot" ];
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
systemd.services.denbot = {
description = "Thilo's Den discord bot";
wantedBy = ["multi-user.target"];