From 6ce06dec7650046ccf2ab861cc1f0b409388f974 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 8 Sep 2018 15:01:18 +0200 Subject: ... --- custom/bar-service.nix | 6 ++++++ odin.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/custom/bar-service.nix b/custom/bar-service.nix index 67e1fc60..31ae718e 100644 --- a/custom/bar-service.nix +++ b/custom/bar-service.nix @@ -44,6 +44,12 @@ in { description = "Subdirectory of the daemon-managed site relative to HTTP /; only useful when using a reverse proxy"; }; + ipFromHeader = mkOption { + type = types.bool; + default = false; + description = "Determine IP from a HTTP header"; + }; + thermoprintBaseURL = mkOption { type = with types; nullOr types.str; default = null; diff --git a/odin.nix b/odin.nix index 2421492b..2d8ddbeb 100644 --- a/odin.nix +++ b/odin.nix @@ -446,6 +446,7 @@ enable = true; port = 8082; approot = "/bar"; + ipFromHeader = true; }; services.nginx = { -- cgit v1.2.3