From ef5de4798a22801a1e67d63d9078c039ab13f94c Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 16 Oct 2023 11:58:12 +0000 Subject: Use recommended Nginx settings --- configuration.nix | 8 +++++++- machines/lapin.nix | 2 +- 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"; }; }; -- cgit 1.4.1