fuuko/hedgedoc: Migrate to renge
This commit is contained in:
parent
3a752b9a3d
commit
68dadcf56c
|
@ -8,7 +8,6 @@
|
|||
./services/binary-cache.nix
|
||||
./services/dnsmasq.nix
|
||||
./services/grafana.nix
|
||||
./services/hedgedoc.nix
|
||||
./services/matrix
|
||||
./services/media-backup.nix
|
||||
./services/media.nix
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
../../modules
|
||||
|
||||
./services/gitea.nix
|
||||
./services/hedgedoc.nix
|
||||
];
|
||||
|
||||
sbruder = {
|
||||
|
|
|
@ -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" = {
|
Loading…
Reference in a new issue