about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix8
-rw-r--r--machines/lapin.nix2
2 files changed, 8 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix
index af120b3..5378d07 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -57,7 +57,13 @@ in
       enable = true;
       useRoutingFeatures = "client";
     };
-    nginx.enable = true;
+    nginx = {
+      enable = true;
+      recommendedGzipSettings = true;
+      recommendedOptimisation = true;
+      recommendedProxySettings = true;
+      recommendedTlsSettings = true;
+    };
   };
 
   virtualisation = {
diff --git a/machines/lapin.nix b/machines/lapin.nix
index 6de21d6..7e4ef8b 100644
--- a/machines/lapin.nix
+++ b/machines/lapin.nix
@@ -44,7 +44,7 @@
       enableACME = true;
       
       locations."/" = {
-        recommendedProxySettings = true;
+        proxyWebsockets = true;
         proxyPass = "http://127.0.0.1:1111";
       };
     };