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 ];
|
||||
|
||||
services.hedgedoc.settings = {
|
||||
domain = "hedgedoc.${config.vars.primeDomain}";
|
||||
port = 8001;
|
||||
host = "127.0.0.1";
|
||||
protocolUseSSL = true;
|
||||
allowOrigin = [
|
||||
"localhost"
|
||||
config.services.hedgedoc.settings.domain
|
||||
];
|
||||
config = lib.mkIf config.services.hedgedoc.enable {
|
||||
services.hedgedoc.settings = {
|
||||
domain = "hedgedoc.${config.vars.primeDomain}";
|
||||
port = 8001;
|
||||
host = "127.0.0.1";
|
||||
protocolUseSSL = true;
|
||||
allowOrigin = [
|
||||
"localhost"
|
||||
config.services.hedgedoc.settings.domain
|
||||
];
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [ "/var/lib/forgejo" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue