Skip to content

Commit

Permalink
Use nginx variable for http port
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Sep 18, 2024
1 parent 35cd529 commit f4b428b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configuration/devices/headless/router/firewall.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, interfaces, ... }:
{ config, lib, interfaces, ... }:
let
externalInterface = interfaces.external;
internalInterface = interfaces.internal;
Expand All @@ -7,7 +7,7 @@ let
serverIp = "192.168.2.2";
in {
networking = {
firewall.interfaces = let rules = { allowedTCPPorts = [ 80 443 ]; };
firewall.interfaces = let rules = { allowedTCPPorts = [ config.services.nginx.defaultHTTPListenPort 443 ]; };
in {
"${externalInterface}" = rules;

Expand Down

0 comments on commit f4b428b

Please sign in to comment.