summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-09 22:08:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-09 22:08:24 +0100
commit5f7dfe0b58e961d4f798691e6067d61e44460470 (patch)
tree7e002ad1d0dc554dc2f292a911402db961c5b3a9 /bragi.nix
parentcf6ba7cbff444db49797076b70a639961f29e8ef (diff)
downloadnixos-5f7dfe0b58e961d4f798691e6067d61e44460470.tar
nixos-5f7dfe0b58e961d4f798691e6067d61e44460470.tar.gz
nixos-5f7dfe0b58e961d4f798691e6067d61e44460470.tar.bz2
nixos-5f7dfe0b58e961d4f798691e6067d61e44460470.tar.xz
nixos-5f7dfe0b58e961d4f798691e6067d61e44460470.zip
Poke thermoprint config
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix9
1 files changed, 2 insertions, 7 deletions
diff --git a/bragi.nix b/bragi.nix
index 3fc941cc..987a83d6 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -270,14 +270,9 @@ in rec {
270 home = "/var/lib/thermoprint"; 270 home = "/var/lib/thermoprint";
271 }; 271 };
272 272
273 environment.etc."thermoprint-server" = {
274 source = ./bragi/thermoprint-server;
275 mode = "symlink";
276 };
277
278 systemd.services."thermoprint" = { 273 systemd.services."thermoprint" = {
279 environment = { 274 environment = {
280 THERMOPRINT_CONFIG = "/etc/thermoprint-server"; 275 THERMOPRINT_CONFIG = ./bragi/thermoprint-server;
281 THERMOPRINT_CACHE = ''${users.extraUsers."thermoprint".home}/dyre''; 276 THERMOPRINT_CACHE = ''${users.extraUsers."thermoprint".home}/dyre'';
282 }; 277 };
283 requires = [ "postgresql.service" ]; 278 requires = [ "postgresql.service" ];
@@ -344,7 +339,7 @@ in rec {
344 server_name _; 339 server_name _;
345 340
346 location /thermoprint/api/ { 341 location /thermoprint/api/ {
347 proxy_pass http://localhost:8080/; 342 proxy_pass http://::1:8080/;
348 proxy_http_version 1.1; 343 proxy_http_version 1.1;
349 proxy_set_header Upgrade $http_upgrade; 344 proxy_set_header Upgrade $http_upgrade;
350 proxy_set_header Connection "upgrade"; 345 proxy_set_header Connection "upgrade";