fuuko/hedgedoc: Migrate to okarin

This commit is contained in:
Simon Bruder 2022-03-17 15:59:53 +01:00
parent b46d3ba1ae
commit bb6952cc09
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 4 additions and 5 deletions

View file

@ -10,7 +10,6 @@
./services/dnsmasq.nix
./services/gitea.nix
./services/grafana.nix
./services/hedgedoc.nix
./services/hydra.nix
./services/matrix
./services/media-backup.nix

View file

@ -5,6 +5,7 @@
./hardware-configuration.nix
../../modules
./services/hedgedoc.nix
./services/invidious
./services/libreddit.nix
./services/nitter.nix

View file

@ -7,7 +7,7 @@ in
enable = true;
ensureDatabases = [ "hedgedoc" ];
ensureUsers = lib.singleton {
name = "codimd";
name = "hedgedoc";
ensurePermissions = {
"DATABASE hedgedoc" = "ALL PRIVILEGES";
};
@ -22,14 +22,13 @@ in
db = {
dialect = "postgres";
host = "/run/postgresql";
#user = "hedgedoc";
user = "hedgedoc";
database = "hedgedoc";
};
domain = "pad.sbruder.de";
protocolUseSSL = true;
csp.enable = true;
imageUploadType = "filesystem";
uploadsPath = "/data/hedgedoc/uploads";
};
};
@ -51,7 +50,7 @@ in
};
systemd.tmpfiles.rules = [
"d ${cfg.configuration.uploadsPath} 0700 codimd codimd - -"
"d ${cfg.configuration.uploadsPath} 0700 hedgedoc hedgedoc - -"
];
services.nginx.virtualHosts."pad.sbruder.de" = {