Merge pull request #172824 from helsinki-systems/fix/hedgedoc-fileupload
nixos/hedgedoc: Set StateDirectory to workDir and uploadsPath
This commit is contained in:
commit
8109d8ac35
1 changed files with 1 additions and 0 deletions
|
@ -1023,6 +1023,7 @@ in
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
WorkingDirectory = cfg.workDir;
|
WorkingDirectory = cfg.workDir;
|
||||||
|
StateDirectory = [ cfg.workDir cfg.configuration.uploadsPath ];
|
||||||
ExecStart = "${cfg.package}/bin/hedgedoc";
|
ExecStart = "${cfg.package}/bin/hedgedoc";
|
||||||
EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
|
EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
|
||||||
Environment = [
|
Environment = [
|
||||||
|
|
Loading…
Reference in a new issue