From ac61842f296eda8619897b07098f199fcd28e700 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 28 Sep 2022 22:09:16 +0200 Subject: [PATCH] configuration/common: Tweak nginx default vhost --- configuration/common/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index bb2ebbf..0f907c0 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -53,11 +53,14 @@ recommendedProxySettings = true; recommendedTlsSettings = true; + appendHttpConfig = '' + server_names_hash_bucket_size 64; + ''; + virtualHosts = { "default" = { default = true; - enableACME = true; - addSSL = true; + rejectSSL = true; locations."/" = { return = ''200 "Some piece of infrastructure\n"''; extraConfig = '' @@ -68,8 +71,6 @@ }; }; - clerie.akne.selfSignedOnlyHostNames = [ "default" ]; - security.acme = { defaults.email = "letsencrypt@clerie.de"; acceptTerms = true;