nixos/middleman: Let's Encrypt for main domain
This commit is contained in:
parent
60b2b6ec80
commit
ffeb333bbc
1
lib.nix
1
lib.nix
@ -156,6 +156,7 @@ rec {
|
||||
filterOpts = filterAttrsRecursive (_: v: v != null);
|
||||
};
|
||||
|
||||
pubDomain = "nul.ie";
|
||||
colony = rec {
|
||||
domain = "test.int.nul.ie";
|
||||
start = {
|
||||
|
@ -39,15 +39,16 @@
|
||||
owner = "acme";
|
||||
group = "acme";
|
||||
};
|
||||
"cloudflare-credentials.conf" = {
|
||||
owner = "acme";
|
||||
group = "acme";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
firewall = {
|
||||
tcp.allowed = [ "http" "https" ];
|
||||
};
|
||||
|
||||
tmproot.persistence.config.directories = [
|
||||
];
|
||||
};
|
||||
|
||||
users = {
|
||||
@ -101,6 +102,13 @@
|
||||
EXEC_PATH=${script}
|
||||
'';
|
||||
};
|
||||
"${lib.my.pubDomain}" = {
|
||||
extraDomainNames = [
|
||||
"*.${lib.my.pubDomain}"
|
||||
];
|
||||
dnsProvider = "cloudflare";
|
||||
credentialsFile = config.age.secrets."cloudflare-credentials.conf".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
10
secrets/cloudflare-credentials.conf.age
Normal file
10
secrets/cloudflare-credentials.conf.age
Normal 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ç†àt‹IÕ:B·Ù1õ?»VëÛ—óz÷Á™}ù3õqÒIÇü¾þ’>Å
{ÌâæÖ=œÁHê')UŠ"°)HS¢Éæ1-Ö-–pêåêYÆ…½HÖtn<74>ìà[ÐÝŸ-¬òl™Ö|Uolgç¨Ó
|
Loading…
Reference in New Issue
Block a user