From b5d57ea99efb00a2e3ab08ed6b99b120976e7cf1 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 25 Sep 2019 14:06:23 +0200 Subject: ma nginx: use gzip settings, update hostname --- makefu/2configs/nginx/euer.wiki.nix | 9 +-------- makefu/2configs/nginx/misa-felix-hochzeit.ml.nix | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'makefu/2configs') diff --git a/makefu/2configs/nginx/euer.wiki.nix b/makefu/2configs/nginx/euer.wiki.nix index 280622259..732c27784 100644 --- a/makefu/2configs/nginx/euer.wiki.nix +++ b/makefu/2configs/nginx/euer.wiki.nix @@ -75,6 +75,7 @@ in { services.nginx = { enable = mkDefault true; + recommendedGzipSettings = true; virtualHosts = { "${ext-dom}" = { #serverAliases = [ @@ -83,14 +84,6 @@ in { #]; forceSSL = true; enableACME = true; - # recommendedGzipSettings = true; - extraConfig = '' - gzip on; - gzip_buffers 4 32k; - gzip_types text/plain application/x-javascript text/css; - default_type text/plain; - - ''; locations = { "/" = { root = wiki-dir; diff --git a/makefu/2configs/nginx/misa-felix-hochzeit.ml.nix b/makefu/2configs/nginx/misa-felix-hochzeit.ml.nix index 752612342..d54deeea2 100644 --- a/makefu/2configs/nginx/misa-felix-hochzeit.ml.nix +++ b/makefu/2configs/nginx/misa-felix-hochzeit.ml.nix @@ -2,8 +2,7 @@ { services.nginx = { enable = lib.mkDefault true; - virtualHosts."misa-felix-hochzeit.ml" = { - serverAliases = [ "misa-felix.ml" "www.misa-felix.ml" ]; + virtualHosts."misa-felix.ml" = { forceSSL = true; enableACME = true; locations = { -- cgit v1.2.3