From 033d86995159495353e98b8820db6f343f032d44 Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Mon, 16 Mar 2026 03:42:01 +0000 Subject: [PATCH] Hosting more stuff. cleaning nginx --- hosts/soleo/configuration.nix | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/hosts/soleo/configuration.nix b/hosts/soleo/configuration.nix index 2f86b71..1b34585 100644 --- a/hosts/soleo/configuration.nix +++ b/hosts/soleo/configuration.nix @@ -1,4 +1,14 @@ -{ pkgs, modulesPath, ... }: { +{ pkgs, modulesPath, ... }: +let + withGitBlock = { + extraConfig = '' + location ~ /\.git { + deny all; + } + ''; + }; +in +{ imports = [ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/profiles/qemu-guest.nix") ]; @@ -31,18 +41,25 @@ recommendedTlsSettings = true; clientMaxBodySize = "500m"; virtualHosts = { - "dustinswan.com" = { + "dustinswan.com" = withGitBlock // { forceSSL = true; enableACME = true; serverAliases = [ "www.dustinswan.com" ]; root = "/var/www/dustinswan.com"; - extraConfig = '' - location ~ /\.git { - deny all; - } - ''; }; - "git.dustinswan.com" = { + "resume.dustinswan.com" = withGitBlock // { + forceSSL = true; + enableACME = true; + # serverAliases = [ "www.dustinswan.com" ]; + root = "/var/www/resume.dustinswan.com"; + }; + "swanlabs.org" = withGitBlock // { + forceSSL = true; + enableACME = true; + serverAliases = [ "www.swanlabs.org" ]; + globalRedirect = "dustinswan.com"; + }; + "git.dustinswan.com" = withGitBlock // { forceSSL = true; enableACME = true; locations."/" = {