feat: change from namecheap to cloudflare, setup tls with acme, setup vaultwarden
This commit is contained in:
parent
6b55345b66
commit
fd794698d3
12 changed files with 118 additions and 23 deletions
19
hosts/APPA/services/acme.nix
Normal file
19
hosts/APPA/services/acme.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.environments-acme = {
|
||||
file = ../../../secrets/environments/acme.age;
|
||||
};
|
||||
|
||||
security.acme.acceptTerms = true;
|
||||
security.acme.defaults.email = "gendulf@posteo.de";
|
||||
|
||||
security.acme.certs."dryb.org" = {
|
||||
domain = "dryb.org";
|
||||
extraDomainNames = [ "*.dryb.org" ];
|
||||
dnsProvider = "cloudflare";
|
||||
dnsPropagationCheck = true;
|
||||
credentialsFile = config.age.secrets.environments-acme.path;
|
||||
};
|
||||
|
||||
users.users.nginx.extraGroups = [ "acme" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue