From cb06fee357e019763122bd5f1e44ebf1f49bd296 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 31 May 2024 10:49:40 +0200 Subject: [PATCH] signal-rest: bind to host --- 2configs/home/ham/signal-rest/service.nix | 6 ++++-- 2configs/hw/slaesh.nix | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/2configs/home/ham/signal-rest/service.nix b/2configs/home/ham/signal-rest/service.nix index 1f718ef..445e009 100644 --- a/2configs/home/ham/signal-rest/service.nix +++ b/2configs/home/ham/signal-rest/service.nix @@ -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 }; } diff --git a/2configs/hw/slaesh.nix b/2configs/hw/slaesh.nix index 1a7d053..6412f3c 100644 --- a/2configs/hw/slaesh.nix +++ b/2configs/hw/slaesh.nix @@ -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" ''; }