signal-rest: bind to host
This commit is contained in:
parent
a83ece8237
commit
cb06fee357
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue