From d98c1e47cef59aa7477864c7a93e9be2acd39d21 Mon Sep 17 00:00:00 2001 From: korenstin Date: Tue, 7 Oct 2025 21:18:38 +0200 Subject: [PATCH] nginx: configuration recommended --- profiles/vm/default.nix | 1 + profiles/vm/nginx.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 profiles/vm/nginx.nix diff --git a/profiles/vm/default.nix b/profiles/vm/default.nix index 833022f..cac52d5 100644 --- a/profiles/vm/default.nix +++ b/profiles/vm/default.nix @@ -3,6 +3,7 @@ { imports = [ ./hardware-configuration.nix + ./nginx.nix ./virtualisation.nix ]; } diff --git a/profiles/vm/nginx.nix b/profiles/vm/nginx.nix new file mode 100644 index 0000000..8b22c19 --- /dev/null +++ b/profiles/vm/nginx.nix @@ -0,0 +1,10 @@ +{ ... }: + +{ + services.nginx = { + recommendedTlsSettings = true; + recommendedOptimisation = true; + recommendedGzipSettings = true; + recommendedProxySettings = true; + }; +}