diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-12-23 17:42:27 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-12-23 17:42:27 +0530 |
commit | a74e008263afe2a3a71a4cf5b76ca71e62ae3b21 (patch) | |
tree | fb56cd5d23b2b2b9a4905d86075a5913af9b326e /hosts | |
parent | df2bfb016b19124591c608654bf7010f7b128dce (diff) |
kay/nginx: enable recommended options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/kay/modules/www.nix | 10 |
1 files changed, 6 insertions, 4 deletions
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 = '' |