fuuko/hedgedoc: Migrate to okarin
This commit is contained in:
parent
b46d3ba1ae
commit
bb6952cc09
|
@ -10,7 +10,6 @@
|
||||||
./services/dnsmasq.nix
|
./services/dnsmasq.nix
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/grafana.nix
|
./services/grafana.nix
|
||||||
./services/hedgedoc.nix
|
|
||||||
./services/hydra.nix
|
./services/hydra.nix
|
||||||
./services/matrix
|
./services/matrix
|
||||||
./services/media-backup.nix
|
./services/media-backup.nix
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules
|
../../modules
|
||||||
|
|
||||||
|
./services/hedgedoc.nix
|
||||||
./services/invidious
|
./services/invidious
|
||||||
./services/libreddit.nix
|
./services/libreddit.nix
|
||||||
./services/nitter.nix
|
./services/nitter.nix
|
||||||
|
|
|
@ -7,7 +7,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "hedgedoc" ];
|
ensureDatabases = [ "hedgedoc" ];
|
||||||
ensureUsers = lib.singleton {
|
ensureUsers = lib.singleton {
|
||||||
name = "codimd";
|
name = "hedgedoc";
|
||||||
ensurePermissions = {
|
ensurePermissions = {
|
||||||
"DATABASE hedgedoc" = "ALL PRIVILEGES";
|
"DATABASE hedgedoc" = "ALL PRIVILEGES";
|
||||||
};
|
};
|
||||||
|
@ -22,14 +22,13 @@ in
|
||||||
db = {
|
db = {
|
||||||
dialect = "postgres";
|
dialect = "postgres";
|
||||||
host = "/run/postgresql";
|
host = "/run/postgresql";
|
||||||
#user = "hedgedoc";
|
user = "hedgedoc";
|
||||||
database = "hedgedoc";
|
database = "hedgedoc";
|
||||||
};
|
};
|
||||||
domain = "pad.sbruder.de";
|
domain = "pad.sbruder.de";
|
||||||
protocolUseSSL = true;
|
protocolUseSSL = true;
|
||||||
csp.enable = true;
|
csp.enable = true;
|
||||||
imageUploadType = "filesystem";
|
imageUploadType = "filesystem";
|
||||||
uploadsPath = "/data/hedgedoc/uploads";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,7 +50,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d ${cfg.configuration.uploadsPath} 0700 codimd codimd - -"
|
"d ${cfg.configuration.uploadsPath} 0700 hedgedoc hedgedoc - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.nginx.virtualHosts."pad.sbruder.de" = {
|
services.nginx.virtualHosts."pad.sbruder.de" = {
|
Loading…
Reference in a new issue