removed systemd unit coturnssl
This commit is contained in:
parent
f225e25853
commit
6a191f4caf
@ -4,34 +4,6 @@ let
|
|||||||
personalization = import ./personalization.nix;
|
personalization = import ./personalization.nix;
|
||||||
in
|
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;
|
enable = true;
|
||||||
use-auth-secret = true;
|
use-auth-secret = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user