mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(hakurei): access
This commit is contained in:
parent
7ded53ccc1
commit
e95cec051f
5 changed files with 62 additions and 16 deletions
|
|
@ -5,7 +5,7 @@
|
|||
}:
|
||||
let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.modules) mkIf mkMerge mkDefault mkOptionDefault;
|
||||
inherit (lib.modules) mkIf mkDefault mkOptionDefault;
|
||||
cfg = config.services.zigbee2mqtt;
|
||||
access = config.services.nginx.access.zigbee2mqtt;
|
||||
proxyPass = mkDefault "http://${access.host}:${toString access.port}";
|
||||
|
|
@ -51,6 +51,12 @@ in {
|
|||
inherit proxyPass extraConfig;
|
||||
};
|
||||
};
|
||||
"z2m.tail.${config.networking.domain}" = mkIf config.services.tailscale.enable {
|
||||
local.enable = true;
|
||||
locations."/" = {
|
||||
inherit proxyPass extraConfig;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue