From a74e008263afe2a3a71a4cf5b76ca71e62ae3b21 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 23 Dec 2023 17:42:27 +0530 Subject: kay/nginx: enable recommended options --- hosts/kay/modules/www.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'hosts/kay/modules') diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index 84627eb..4ffa141 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -21,6 +21,12 @@ in services.nginx = { enable = true; + recommendedTlsSettings = true; + recommendedZstdSettings = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedProxySettings = true; + recommendedBrotliSettings = true; eventsConfig = "worker_connections 1024;"; virtualHosts = { @@ -31,10 +37,6 @@ in extraConfig = '' client_max_body_size ${toString config.services.dendrite.settings.media_api.max_file_size_bytes}; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; ''; locations."/.well-known/matrix/server".return = '' -- cgit v1.2.3