Revert "fuuko/hedgedoc: Migrate to okarin"
This reverts commit bb6952cc09
.
The performance on okarin is unbearably slow which makes hedgedoc time
out on most requests.
This commit is contained in:
parent
de0b208340
commit
76fee5875a
|
@ -8,6 +8,7 @@
|
|||
./services/binary-cache.nix
|
||||
./services/dnsmasq.nix
|
||||
./services/grafana.nix
|
||||
./services/hedgedoc.nix
|
||||
./services/matrix
|
||||
./services/media-backup.nix
|
||||
./services/media.nix
|
||||
|
|
|
@ -7,7 +7,7 @@ in
|
|||
enable = true;
|
||||
ensureDatabases = [ "hedgedoc" ];
|
||||
ensureUsers = lib.singleton {
|
||||
name = "hedgedoc";
|
||||
name = "codimd";
|
||||
ensurePermissions = {
|
||||
"DATABASE hedgedoc" = "ALL PRIVILEGES";
|
||||
};
|
||||
|
@ -22,13 +22,14 @@ 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";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -50,7 +51,7 @@ in
|
|||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${cfg.configuration.uploadsPath} 0700 hedgedoc hedgedoc - -"
|
||||
"d ${cfg.configuration.uploadsPath} 0700 codimd codimd - -"
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts."pad.sbruder.de" = {
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
./services/ankisyncd.nix
|
||||
./services/gitea.nix
|
||||
./services/hedgedoc.nix
|
||||
./services/invidious
|
||||
./services/libreddit.nix
|
||||
./services/nitter.nix
|
||||
|
|
Loading…
Reference in a new issue