1
0

Update from updated-inputs-2024-04-03-01-03

This commit is contained in:
clerie 2024-04-03 03:03:05 +02:00
commit 6658fe1f59
2 changed files with 43 additions and 0 deletions

View File

@ -12,6 +12,7 @@
./drop.nix
./fieldpoc.nix
./gitea.nix
./hedgedoc.nix
./iot-data.nix
./ip.nix
./legal.nix

42
hosts/web-2/hedgedoc.nix Normal file
View File

@ -0,0 +1,42 @@
{ ... }:
{
services.hedgedoc = {
enable = true;
settings = {
domain = "md.clerie.de";
protocolUseSSL = true;
db = {
dialect = "postgres";
host = "/run/postgresql";
};
port = 3835;
host = "::1";
allowEmailRegister = false;
};
};
services.postgresql = {
ensureDatabases = [ "hedgedoc" ];
ensureUsers = [
{
name = "hedgedoc";
ensureDBOwnership = true;
}
];
};
services.nginx.virtualHosts = {
"md.clerie.de" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://[::1]:3835";
proxyWebsockets = true;
};
};
};
};
}