feat: clean up colmena a little, fix nginx default vhost

This commit is contained in:
Kat Inskip 2025-10-19 13:57:39 -07:00
parent cb7eb46ee7
commit 2189d0592f
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
4 changed files with 32 additions and 21 deletions

View file

@ -1,4 +1,4 @@
_: {
{config, ...}: {
services.nginx = {
enable = true;
recommendedTlsSettings = true;
@ -6,5 +6,32 @@ _: {
recommendedGzipSettings = true;
recommendedProxySettings = true;
statusPage = true;
virtualHosts = let
vHost = {
extraConfig = ''
add_header Content-Type text/plain;
return 200 "meep?";
'';
/*
locations = {
"/" = {
extraConfig = ''
add_header Content-Type text/plain;
return 200 "meep?";
'';
};
};
*/
};
in {
"${config.networking.fqdn}" =
vHost
// {
enableACME = true;
forceSSL = true;
default = true;
};
"localhost" = vHost;
};
};
}