Fixed acme, now correctly using cloudflare for certs
This commit is contained in:
parent
22ded466b3
commit
dd8c7976e8
2 changed files with 14 additions and 6 deletions
1
nixos/modules/acme/cloudflare.ini.example
Normal file
1
nixos/modules/acme/cloudflare.ini.example
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CF_DNS_API_TOKEN=
|
|
@ -1,10 +1,17 @@
|
||||||
{
|
{ config, lib, pkgs, ... }: {
|
||||||
# TODO: find out how to add the certs from my nginx doxker since this jurs errors always
|
|
||||||
|
|
||||||
# letsencrypt this wont do shit but allows things to work
|
# letsencrypt
|
||||||
# i take care of this on dockge lxc
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "chris@toph.cc";
|
defaults = {
|
||||||
|
email = "chris@toph.cc";
|
||||||
|
dnsProvider = "cloudflare";
|
||||||
|
environmentFile = ./cloudflare.ini;
|
||||||
|
};
|
||||||
|
certs = {
|
||||||
|
"ryot.foo" = {
|
||||||
|
extraDomainNames = ["*.ryot.foo"];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue