signal-rest: bind to host

This commit is contained in:
makefu 2024-05-31 10:49:40 +02:00
parent a83ece8237
commit cb06fee357
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 5 additions and 3 deletions

View file

@ -10,11 +10,13 @@ in {
state = [ config ];
virtualisation.oci-containers.containers.signal-rest = {
image = image;
ports = [ "127.0.0.1:${toString port}:8080" ];
#ports = [ "127.0.0.1:${toString port}:${toString port}" ];
extraOptions = [ "--network=host"];
volumes = [
"${config}:/home/.local/share/signal-cli"
];
environment.PORT = toString port;
environment.MODE ="json-rpc";
#environment.MODE ="native"; # only required for reigstration
#environment.MODE ="native"; # only required for registration
};
}

View file

@ -4,6 +4,6 @@
users.users.${config.krebs.build.user.name}.extraGroups = [ "dialout" ];
services.udev.extraRules = ''
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="zigbee", MODE="0660", GROUP="dailout"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="zigbee", MODE="0660", GROUP="dialout"
'';
}