about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-08-05 17:26:22 -0700
committerFranck Cuny <franck@fcuny.net>2024-08-05 17:26:22 -0700
commitc4cd811529ea9dcf757e2518bd1aa939cdcc5825 (patch)
tree3f1e2f6fbb8eb1264c7335c60a4fb102b2e6ef8c
parentinitial nginx configuration for fcuny.net (diff)
downloadworld-c4cd811529ea9dcf757e2518bd1aa939cdcc5825.tar.gz
another attempt for nginx and acme
-rw-r--r--nix/hosts/wildcat/configuration.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix/hosts/wildcat/configuration.nix b/nix/hosts/wildcat/configuration.nix
index c4c50c5..23ac05f 100644
--- a/nix/hosts/wildcat/configuration.nix
+++ b/nix/hosts/wildcat/configuration.nix
@@ -14,7 +14,12 @@
 
   services.nginx = {
     enable = true;
+
     recommendedProxySettings = true;
+    recommendedGzipSettings = true;
+    recommendedOptimisation = true;
+    recommendedTlsSettings = true;
+
     virtualHosts = {
       "fcuny.net" = {
         addSSL = true;
@@ -23,6 +28,9 @@
           "/" = {
             root = "/srv/www/fcuny.net";
           };
+          "/.well-known/acme-challenge" = {
+            root = "/var/lib/acme/.challenges";
+          };
         };
       };
     };