about summary refs log tree commit diff
path: root/nix/hosts/wildcat/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts/wildcat/configuration.nix')
-rw-r--r--nix/hosts/wildcat/configuration.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nix/hosts/wildcat/configuration.nix b/nix/hosts/wildcat/configuration.nix
new file mode 100644
index 0000000..c4c50c5
--- /dev/null
+++ b/nix/hosts/wildcat/configuration.nix
@@ -0,0 +1,30 @@
+{ ... }: {
+  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";
+          };
+        };
+      };
+    };
+  };
+}