1
0

Compare commits

..

3 Commits

Author SHA1 Message Date
6658fe1f59 Update from updated-inputs-2024-04-03-01-03 2024-04-03 03:03:05 +02:00
Flake Update Bot
db4c58f0f9 Update nixpkgs 2024-04-03-01-03 2024-04-03 03:03:03 +02:00
f0d82c45fb hosts/web-2: Add md.clerie.de 2024-04-02 22:14:17 +02:00
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;
};
};
};
};
}