mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(monitoring): clean up hass changes
This commit is contained in:
parent
3991badf2c
commit
409d711175
5 changed files with 36 additions and 54 deletions
|
|
@ -101,10 +101,15 @@ in {
|
|||
interfaces.local = {
|
||||
allowedTCPPorts = mkMerge [
|
||||
(mkIf (!cfg.homekit.openFirewall) homekitTcp)
|
||||
(mkIf (!cfg.openFirewall) [cfg.config.http.server_port])
|
||||
(mkIf (!cfg.openFirewall && !cfg.reverseProxy.enable) [cfg.config.http.server_port])
|
||||
];
|
||||
allowedUDPPortRanges = mkIf (!cfg.cast.openFirewall) castUdpRanges;
|
||||
};
|
||||
interfaces.lan = {
|
||||
allowedTCPPorts = mkIf (!cfg.openFirewall && cfg.reverseProxy.enable) [
|
||||
cfg.config.http.server_port
|
||||
];
|
||||
};
|
||||
allowedTCPPorts = mkIf cfg.homekit.openFirewall homekitTcp;
|
||||
allowedUDPPortRanges = mkIf cfg.cast.openFirewall castUdpRanges;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue