From 5802bf2d025b454703a456ef39ba7776a0d5eec8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 3 Aug 2016 13:08:32 +0200 Subject: have thermoprint listen on localhost only --- bragi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bragi.nix b/bragi.nix index 1477410c..4fc0f2dc 100644 --- a/bragi.nix +++ b/bragi.nix @@ -303,7 +303,7 @@ in rec { , collapse = standardCollapse } - wSettings = Warp.setHost "*" . Warp.setPort 8080 $ Warp.defaultSettings + wSettings = Warp.setHost "localhost" . Warp.setPort 8080 $ Warp.defaultSettings ''; }; @@ -325,7 +325,7 @@ in rec { wantedBy = [ "default.target" ]; serviceConfig = { Type = "simple"; - ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 80 -A localhost -F thermoprint/api -a "*" -p 8081''; + ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 80 -A localhost -F thermoprint/api -a "localhost" -p 8081''; User = users.extraUsers."thermoprint".name; Group = users.extraUsers."thermoprint".group; }; -- cgit v1.2.3