From b2b56817ba323722550404eda83a90b0483cb3e5 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 20 Feb 2023 20:24:34 +0100 Subject: [PATCH] nginx: Update configuration --- system/nixos/anonymous-overflow.nix | 4 ++++ system/nixos/libreddit.nix | 4 ++++ system/nixos/mastodon.nix | 4 ++++ system/nixos/nitter.nix | 4 ++++ system/nixos/websites.nix | 3 +++ 5 files changed, 19 insertions(+) diff --git a/system/nixos/anonymous-overflow.nix b/system/nixos/anonymous-overflow.nix index c6613cc..abad87c 100644 --- a/system/nixos/anonymous-overflow.nix +++ b/system/nixos/anonymous-overflow.nix @@ -40,6 +40,10 @@ in services.nginx = { enable = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedBrotliSettings = true; + virtualHosts."anonymous-overflow.only.internal" = { listen = [ { diff --git a/system/nixos/libreddit.nix b/system/nixos/libreddit.nix index 790b7f6..b610743 100644 --- a/system/nixos/libreddit.nix +++ b/system/nixos/libreddit.nix @@ -10,6 +10,10 @@ services.nginx = { enable = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedBrotliSettings = true; + virtualHosts."libreddit.only.internal" = { listen = [ { diff --git a/system/nixos/mastodon.nix b/system/nixos/mastodon.nix index eca011e..f47002c 100644 --- a/system/nixos/mastodon.nix +++ b/system/nixos/mastodon.nix @@ -82,6 +82,10 @@ in services.nginx = { enable = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedBrotliSettings = true; + virtualHosts."${web-domain}" = { listen = [ { diff --git a/system/nixos/nitter.nix b/system/nixos/nitter.nix index 48bbacd..0355179 100644 --- a/system/nixos/nitter.nix +++ b/system/nixos/nitter.nix @@ -53,6 +53,10 @@ in services.nginx = { enable = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedBrotliSettings = true; + virtualHosts."nitter.only.internal" = { listen = [ { diff --git a/system/nixos/websites.nix b/system/nixos/websites.nix index bab7341..fb98236 100644 --- a/system/nixos/websites.nix +++ b/system/nixos/websites.nix @@ -3,6 +3,9 @@ { services.nginx = { enable = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedBrotliSettings = true; # Documentation virtualHosts = builtins.listToAttrs (builtins.map