This commit is contained in:
commit
30ce0dafc2
195 changed files with 8902 additions and 0 deletions
24
services/xray-3x-ui/firewall.nix
Normal file
24
services/xray-3x-ui/firewall.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (config.machine.xray-3x-ui)
|
||||
enable
|
||||
port
|
||||
;
|
||||
in
|
||||
with lib; mkIf enable {
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
# Web panel
|
||||
port
|
||||
|
||||
# SSL & HTTP
|
||||
80
|
||||
443
|
||||
|
||||
# Inbounds
|
||||
1082
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue