diff options
| -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 = { |
