nixos/middleman: Let's Encrypt for main domain

This commit is contained in:
Jack O'Sullivan 2022-06-06 01:12:18 +01:00
parent 60b2b6ec80
commit ffeb333bbc
3 changed files with 22 additions and 3 deletions

View File

@ -156,6 +156,7 @@ rec {
filterOpts = filterAttrsRecursive (_: v: v != null); filterOpts = filterAttrsRecursive (_: v: v != null);
}; };
pubDomain = "nul.ie";
colony = rec { colony = rec {
domain = "test.int.nul.ie"; domain = "test.int.nul.ie";
start = { start = {

View File

@ -39,15 +39,16 @@
owner = "acme"; owner = "acme";
group = "acme"; group = "acme";
}; };
"cloudflare-credentials.conf" = {
owner = "acme";
group = "acme";
};
}; };
}; };
firewall = { firewall = {
tcp.allowed = [ "http" "https" ]; tcp.allowed = [ "http" "https" ];
}; };
tmproot.persistence.config.directories = [
];
}; };
users = { users = {
@ -101,6 +102,13 @@
EXEC_PATH=${script} EXEC_PATH=${script}
''; '';
}; };
"${lib.my.pubDomain}" = {
extraDomainNames = [
"*.${lib.my.pubDomain}"
];
dnsProvider = "cloudflare";
credentialsFile = config.age.secrets."cloudflare-credentials.conf".path;
};
}; };
}; };
}; };

View File

@ -0,0 +1,10 @@
age-encryption.org/v1
-> ssh-ed25519 H162lQ a/oJHGIB43DHpX/EUdal2ZyOlf+zYUbNwztGSP1iuGE
W8bd1I0rgDMEc18zjpP0d4dyp4PGd19/8vJFlVOsGSs
-> X25519 cjqYOE0e9IHvWvcGyOPDNTcNR6Ynv8TdRCoHiBx4UzI
/EzNz/SSzvs9DbCGr28B4/jwZMnpUxoBtDOt9Ombv4Y
-> x]-grease
fRt2HHsTmZbotWaLfgPZ4PT76A
--- M2/lLzEUiSmSuoPhtO/QAg+CPPvnBBMQhisX66A/aKE
ŸbDœýl¨‹Òð÷ <09>½·Î“»€
ˆG¸¤g”-˜2“êðJbç†àtIÕ:B·Ù1õ?»VëÛ—óz÷Á™}ù3õqÒIÇü¾þ>Å {Ìâ æÖ=œÁ­Hê')UŠ"°)HS¢Éæ1-Ö-pêåêYÆ…½HÖtn<74>ìà[ÐÝŸ-¬òl™Ö|Uolgç¨Ó