feat: added per service enable options for reverseProxy configs
This commit is contained in:
parent
7f74060713
commit
ecec04a9ce
8 changed files with 52 additions and 8 deletions
|
|
@ -14,9 +14,15 @@
|
|||
description = "extra domains that should be configured for immich";
|
||||
default = [];
|
||||
};
|
||||
reverseProxy = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = config.services.immich.enable && config.services.reverseProxy.enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.services.immich.enable && config.services.reverseProxy.enable) {
|
||||
config = lib.mkIf config.services.immich.reverseProxy.enable {
|
||||
services.reverseProxy.services.immich = {
|
||||
target = "http://localhost:${toString config.services.immich.port}";
|
||||
domain = config.services.immich.domain;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue