diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-03 13:08:32 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-08-03 13:08:32 +0200 |
commit | 5802bf2d025b454703a456ef39ba7776a0d5eec8 (patch) | |
tree | b9e73fb963a16e65f20c08f8dc7c26415d00dada | |
parent | b5ff94dd276b454a400ca0a4616169984189b183 (diff) | |
download | nixos-5802bf2d025b454703a456ef39ba7776a0d5eec8.tar nixos-5802bf2d025b454703a456ef39ba7776a0d5eec8.tar.gz nixos-5802bf2d025b454703a456ef39ba7776a0d5eec8.tar.bz2 nixos-5802bf2d025b454703a456ef39ba7776a0d5eec8.tar.xz nixos-5802bf2d025b454703a456ef39ba7776a0d5eec8.zip |
have thermoprint listen on localhost only
-rw-r--r-- | bragi.nix | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -303,7 +303,7 @@ in rec { | |||
303 | , collapse = standardCollapse | 303 | , collapse = standardCollapse |
304 | } | 304 | } |
305 | 305 | ||
306 | wSettings = Warp.setHost "*" . Warp.setPort 8080 $ Warp.defaultSettings | 306 | wSettings = Warp.setHost "localhost" . Warp.setPort 8080 $ Warp.defaultSettings |
307 | ''; | 307 | ''; |
308 | }; | 308 | }; |
309 | 309 | ||
@@ -325,7 +325,7 @@ in rec { | |||
325 | wantedBy = [ "default.target" ]; | 325 | wantedBy = [ "default.target" ]; |
326 | serviceConfig = { | 326 | serviceConfig = { |
327 | Type = "simple"; | 327 | Type = "simple"; |
328 | ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 80 -A localhost -F thermoprint/api -a "*" -p 8081''; | 328 | ExecStart = ''${pkgs.thermoprint-webgui}/bin/thermoprint-webgui -P 80 -A localhost -F thermoprint/api -a "localhost" -p 8081''; |
329 | User = users.extraUsers."thermoprint".name; | 329 | User = users.extraUsers."thermoprint".name; |
330 | Group = users.extraUsers."thermoprint".group; | 330 | Group = users.extraUsers."thermoprint".group; |
331 | }; | 331 | }; |