pomerium: use /var/lib/pomerium for autocert state
This commit is contained in:
parent
8ed1d0665e
commit
8956bc3207
1 changed files with 3 additions and 0 deletions
|
@ -30,9 +30,12 @@ with lib;
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
Environment.AUTOCERT_DIR = "/var/lib/pomerium/autocert";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
ExecStart = pkgs.writeShellScript "run-pomerium" ''
|
ExecStart = pkgs.writeShellScript "run-pomerium" ''
|
||||||
|
mkdir -p "$AUTOCERT_DIR"
|
||||||
if [[ -v CREDENTIALS_DIRECTORY ]]; then
|
if [[ -v CREDENTIALS_DIRECTORY ]]; then
|
||||||
cd "$CREDENTIALS_DIRECTORY"
|
cd "$CREDENTIALS_DIRECTORY"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue