removed systemd unit coturnssl
This commit is contained in:
parent
f225e25853
commit
6a191f4caf
@ -4,35 +4,7 @@ let
|
||||
personalization = import ./personalization.nix;
|
||||
in
|
||||
{
|
||||
systemd.services.sslcoturn = {
|
||||
script = ''
|
||||
cp -n /var/lib/caddy/.local/share/caddy/certificates/acme.zerossl.com-v2-dv90/${personalization.matrix_url}/${personalization.matrix_url}.crt /var/lib/coturn/${personalization.matrix_url}.crt.pem
|
||||
|
||||
cp -n /var/lib/caddy/.local/share/caddy/certificates/acme.zerossl.com-v2-dv90/${personalization.matrix_url}/${personalization.matrix_url}.key /var/lib/coturn/${personalization.matrix_url}.key.pem
|
||||
|
||||
chown turnserver:turnserver /var/lib/coturn -R
|
||||
|
||||
chmod 770 /var/lib/coturn -R
|
||||
|
||||
systemctl restart coturn
|
||||
'';
|
||||
|
||||
unitConfig = {
|
||||
Type = "simple";
|
||||
After = "NetworkManager.service";
|
||||
Requires = "network-online.target";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
RemainAfterExit = "yes";
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
|
||||
services.coturn = {
|
||||
services.coturn = {
|
||||
enable = true;
|
||||
use-auth-secret = true;
|
||||
static-auth-secret = "${personalization.age.secrets.turn.file}";
|
||||
|
Loading…
Reference in New Issue
Block a user