diff --git a/nixos/boxes/mb1/blog.nix b/nixos/boxes/mb1/blog.nix index a75a41d5..e42e0e6c 100644 --- a/nixos/boxes/mb1/blog.nix +++ b/nixos/boxes/mb1/blog.nix @@ -1,16 +1,21 @@ -{ - config, - pkgs, - ... -}: let +{pkgs, ...}: let path = "/var/www/blog/"; in { imports = [../nginx.nix]; + services.nginx = { + recommendedBrotliSettings = true; + recommendedGzipSettings = true; + recommendedTlsSettings = true; + recommendedOptimisation = true; + package = pkgs.nginxQuic; virtualHosts = { "blog.cyplo.dev" = { forceSSL = true; enableACME = true; + quic = true; + extraConfig = '' + ''; locations."/" = { root = path; };