Add persistence to hedgedoc
This commit is contained in:
parent
b8db76b404
commit
38da3c3503
1 changed files with 14 additions and 10 deletions
|
@ -1,15 +1,19 @@
|
||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./nginx ];
|
imports = [ ./nginx ];
|
||||||
|
|
||||||
services.hedgedoc.settings = {
|
config = lib.mkIf config.services.hedgedoc.enable {
|
||||||
domain = "hedgedoc.${config.vars.primeDomain}";
|
services.hedgedoc.settings = {
|
||||||
port = 8001;
|
domain = "hedgedoc.${config.vars.primeDomain}";
|
||||||
host = "127.0.0.1";
|
port = 8001;
|
||||||
protocolUseSSL = true;
|
host = "127.0.0.1";
|
||||||
allowOrigin = [
|
protocolUseSSL = true;
|
||||||
"localhost"
|
allowOrigin = [
|
||||||
config.services.hedgedoc.settings.domain
|
"localhost"
|
||||||
];
|
config.services.hedgedoc.settings.domain
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.persistence."/persist".directories = [ "/var/lib/forgejo" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue