aboutsummaryrefslogblamecommitdiff
path: root/nix/hosts/wildcat/configuration.nix
blob: c4c50c5a38fbd7903e627324c6fee4123735150e (plain) (tree)





























                                        
{ ... }: {
  networking = {
    firewall.allowedTCPPorts = [
      # nginx
      80
      443
    ];
  };

  security.acme = {
    defaults.email = "acme@fcuny.net";
    acceptTerms = true;
  };

  services.nginx = {
    enable = true;
    recommendedProxySettings = true;
    virtualHosts = {
      "fcuny.net" = {
        addSSL = true;
        enableACME = true;
        locations = {
          "/" = {
            root = "/srv/www/fcuny.net";
          };
        };
      };
    };
  };
}