Skip to content

Commit

Permalink
migrated to systemd credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Apr 30, 2024
1 parent 7907e82 commit 69b5d85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,18 @@ in

Environment = [
"LISTEN_ADDR=${if (lib.hasInfix ":" cfg.listen.addr) then "[${cfg.listen.addr}]" else cfg.listen.addr}:${toString cfg.listen.port}"
"JITSI_SECRET_FILE=${cfg.jitsiSecretFile}"
"JITSI_SECRET_FILE=$d/jitsi_secret_file"
"JITSI_URL=${cfg.jitsiUrl}"
"JITSI_SUB=${cfg.jitsiSub}"
"ISSUER_URL=${cfg.issuerUrl}"
"BASE_URL=${cfg.baseUrl}"
"CLIENT_ID=${cfg.clientId}"
"CLIENT_SECRET_FILE=${cfg.clientSecretFile}"
"CLIENT_SECRET_FILE=%d/client_secret_file"
];

serviceConfig.LoadCredential = [
"jitsi_secret_file:${cfg.jitsiSecretFile}"
"client_secret_file:${cfg.clientSecretFile}"
];
};
};
Expand Down

0 comments on commit 69b5d85

Please sign in to comment.