diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-08 15:01:18 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-08 15:01:18 +0200 |
| commit | 6ce06dec7650046ccf2ab861cc1f0b409388f974 (patch) | |
| tree | 4fb16fbcd4bd1cca18a5169c683e355e6bfce9f7 | |
| parent | ceba5f723ef453fcf8539be823bf118d49ebffd2 (diff) | |
| download | nixos-6ce06dec7650046ccf2ab861cc1f0b409388f974.tar nixos-6ce06dec7650046ccf2ab861cc1f0b409388f974.tar.gz nixos-6ce06dec7650046ccf2ab861cc1f0b409388f974.tar.bz2 nixos-6ce06dec7650046ccf2ab861cc1f0b409388f974.tar.xz nixos-6ce06dec7650046ccf2ab861cc1f0b409388f974.zip | |
...
| -rw-r--r-- | custom/bar-service.nix | 6 | ||||
| -rw-r--r-- | odin.nix | 1 |
2 files changed, 7 insertions, 0 deletions
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 { | |||
| 44 | description = "Subdirectory of the daemon-managed site relative to HTTP /; only useful when using a reverse proxy"; | 44 | description = "Subdirectory of the daemon-managed site relative to HTTP /; only useful when using a reverse proxy"; |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| 47 | ipFromHeader = mkOption { | ||
| 48 | type = types.bool; | ||
| 49 | default = false; | ||
| 50 | description = "Determine IP from a HTTP header"; | ||
| 51 | }; | ||
| 52 | |||
| 47 | thermoprintBaseURL = mkOption { | 53 | thermoprintBaseURL = mkOption { |
| 48 | type = with types; nullOr types.str; | 54 | type = with types; nullOr types.str; |
| 49 | default = null; | 55 | default = null; |
| @@ -446,6 +446,7 @@ | |||
| 446 | enable = true; | 446 | enable = true; |
| 447 | port = 8082; | 447 | port = 8082; |
| 448 | approot = "/bar"; | 448 | approot = "/bar"; |
| 449 | ipFromHeader = true; | ||
| 449 | }; | 450 | }; |
| 450 | 451 | ||
| 451 | services.nginx = { | 452 | services.nginx = { |
