diff options
author | Ben Sima <ben@bsima.me> | 2021-01-09 12:04:42 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-01-09 12:04:42 -0500 |
commit | e11131dbcf13c4b33a4321fdead44269f3e088c9 (patch) | |
tree | 6240f8dc2e4dc83f59f919d15db50b1bf72ee46e /Biz/Devalloc.nix | |
parent | 8ebaba711f62e026663b0bd4562c79695c79ec4c (diff) |
Fix live cookie settings
Auth was broken without the xsrf thing disabled. Anyway, its best to have
well-defined live and test settings. I will re-enable xsrf when I figure out the
js snippet I need.
Diffstat (limited to 'Biz/Devalloc.nix')
-rw-r--r-- | Biz/Devalloc.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Biz/Devalloc.nix b/Biz/Devalloc.nix index b7c7503..40b06c4 100644 --- a/Biz/Devalloc.nix +++ b/Biz/Devalloc.nix @@ -19,6 +19,16 @@ in incoming HTTP traffic. ''; }; + keep = lib.mkOption { + type = lib.types.path; + default = "/var/devalloc/keep"; + description = "Keep location"; + }; + depo = lib.mkOption { + type = lib.types.path; + default = "/var/devalloc/depo"; + description = "depo location"; + }; package = lib.mkOption { type = lib.types.package; description = "devalloc package to use"; @@ -28,6 +38,10 @@ in systemd.services.devalloc = { path = [ cfg.package pkgs.git ]; wantedBy = [ "multi-user.target" ]; + preStart = '' + mkdir -p ${cfg.keep} + mkdir -p ${cfg.depo} + ''; script = '' ${cfg.package}/bin/devalloc ''; @@ -38,6 +52,8 @@ in Environment = [ "PORT=${toString cfg.port}" "AREA=Live" + "DEPO=${cfg.depo}" + "KEEP=${cfg.keep}" ]; EnvironmentFile="/run/devalloc/env"; KillSignal = "INT"; |