mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
user = "asterisk";
|
||||||
ata-interface = "";
|
ata-interface = "";
|
||||||
rtpPortFrom = 10000;
|
rtpPortFrom = 10000;
|
||||||
rtpPortTo = 20000;
|
rtpPortTo = 20000;
|
||||||
@@ -63,9 +64,25 @@
|
|||||||
files = {
|
files = {
|
||||||
server-prefix-number.secret = false;
|
server-prefix-number.secret = false;
|
||||||
ata-local-number.secret = false;
|
ata-local-number.secret = false;
|
||||||
ata-password.secret = true;
|
ata-password = {
|
||||||
|
owner = user;
|
||||||
|
group = user;
|
||||||
|
secret = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
script = '''';
|
script = ''
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.asterisk.serviceConfig = {
|
||||||
|
LoadCredential = [
|
||||||
|
"sip_password_filepath:${config.clan.core.vars.generators.phonebox.files.ata-password.path}"
|
||||||
|
];
|
||||||
|
|
||||||
|
Environment = [
|
||||||
|
"SIP_PASSWORD=%d/sip_password_filepath"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.interfaces = {
|
networking.interfaces = {
|
||||||
|
|||||||
Reference in New Issue
Block a user