This commit is contained in:
@@ -80,25 +80,25 @@ in
|
||||
# keyFile = livekitKeyFile;
|
||||
# };
|
||||
|
||||
systemd.services.lk-jwt-service.environment.LIVEKIT_FULL_ACCESS_HOMESERVERS = serverName;
|
||||
# systemd.services.lk-jwt-service.environment.LIVEKIT_FULL_ACCESS_HOMESERVERS = serverName;
|
||||
|
||||
systemd.services.livekit.serviceConfig.LoadCredential = [
|
||||
"turn-cert:/var/lib/acme/${matrixRtcDomain}/fullchain.pem"
|
||||
"turn-key:/var/lib/acme/${matrixRtcDomain}/key.pem"
|
||||
];
|
||||
systemd.services.livekit.after = [ "acme-${matrixRtcDomain}.service" ];
|
||||
systemd.services.livekit.requires = [ "acme-${matrixRtcDomain}.service" ];
|
||||
# systemd.services.livekit.serviceConfig.LoadCredential = [
|
||||
# "turn-cert:/var/lib/acme/${matrixRtcDomain}/fullchain.pem"
|
||||
# "turn-key:/var/lib/acme/${matrixRtcDomain}/key.pem"
|
||||
# ];
|
||||
# systemd.services.livekit.after = [ "acme-${matrixRtcDomain}.service" ];
|
||||
# systemd.services.livekit.requires = [ "acme-${matrixRtcDomain}.service" ];
|
||||
|
||||
systemd.services.livekit-key = {
|
||||
before = [ "lk-jwt-service.service" "livekit.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = with pkgs; [ livekit coreutils gawk ];
|
||||
script = ''
|
||||
echo "Key missing, generating key"
|
||||
echo "lk-jwt-service: $(livekit-server generate-keys | tail -1 | awk '{print $3}')" > "${livekitKeyFile}"
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
unitConfig.ConditionPathExists = "!${livekitKeyFile}";
|
||||
# systemd.services.livekit-key = {
|
||||
# before = [ "lk-jwt-service.service" "livekit.service" ];
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# path = with pkgs; [ livekit coreutils gawk ];
|
||||
# script = ''
|
||||
# echo "Key missing, generating key"
|
||||
# echo "lk-jwt-service: $(livekit-server generate-keys | tail -1 | awk '{print $3}')" > "${livekitKeyFile}"
|
||||
# '';
|
||||
# serviceConfig.Type = "oneshot";
|
||||
# unitConfig.ConditionPathExists = "!${livekitKeyFile}";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
|
||||
Reference in New Issue
Block a user