diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-09 22:08:24 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-09 22:08:24 +0100 |
commit | 5f7dfe0b58e961d4f798691e6067d61e44460470 (patch) | |
tree | 7e002ad1d0dc554dc2f292a911402db961c5b3a9 /bragi.nix | |
parent | cf6ba7cbff444db49797076b70a639961f29e8ef (diff) | |
download | nixos-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.nix | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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"; |