diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-07 19:49:11 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-07 19:49:11 -0400 |
| commit | db686dd4b649bc8208b1f0c9e898f6be6127609a (patch) | |
| tree | 98683a50d1a1daf8d354310c655e01ea0b41125a /nixos/modules/homelab/core/caddy.nix | |
| parent | 11eca6aa9692fb0434d278db8a049bdd2b85f14e (diff) | |
homelab: worked on git server
Diffstat (limited to 'nixos/modules/homelab/core/caddy.nix')
| -rw-r--r-- | nixos/modules/homelab/core/caddy.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/modules/homelab/core/caddy.nix b/nixos/modules/homelab/core/caddy.nix index 2041846..828aa10 100644 --- a/nixos/modules/homelab/core/caddy.nix +++ b/nixos/modules/homelab/core/caddy.nix @@ -1,4 +1,4 @@ -{config, lib, pkgs, ...}: let +{config, lib, ...}: let cfg = config.homelab.core.caddy; in { options.homelab.core.caddy = { @@ -8,9 +8,12 @@ in { services.caddy = { enable = true; email = "culsans@vivaldi.net"; - virtualHosts."culsans.site".extraConfig = '' - respond "Hello" - ''; + virtualHosts = { + "culsans.site".extraConfig = '' + respond "Hello" + ''; + }; }; + networking.firewall.allowedTCPPorts = [ 80 443 ]; }; } |
