diff --git a/nixos/modules/services/web-apps/wordpress.nix b/nixos/modules/services/web-apps/wordpress.nix index 827db987890ecb..0635b5505701e1 100644 --- a/nixos/modules/services/web-apps/wordpress.nix +++ b/nixos/modules/services/web-apps/wordpress.nix @@ -545,7 +545,7 @@ in services.caddy = { enable = true; virtualHosts = mapAttrs' (hostName: cfg: ( - nameValuePair "http://${hostName}" { + nameValuePair hostName { extraConfig = '' root * /${pkg hostName cfg}/share/wordpress file_server diff --git a/nixos/tests/wordpress.nix b/nixos/tests/wordpress.nix index 4961a60275653f..90d96c66048a52 100644 --- a/nixos/tests/wordpress.nix +++ b/nixos/tests/wordpress.nix @@ -76,7 +76,7 @@ import ./make-test-python.nix ( }; }; - networking.firewall.allowedTCPPorts = [ 80 ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.hosts."127.0.0.1" = [ "site1.local" "site2.local"