diff options
| author | seth <[email protected]> | 2023-08-03 03:31:35 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-03 03:33:16 -0400 |
| commit | 527cea875ab37a7469975cd09906f424b988175c (patch) | |
| tree | 87bb66dbc454cd2ac2657e3216af34d2c3e01062 /hosts/atlas/nginx.nix | |
| parent | 234801e89d681c2206ac17f00707ed76ea7bf725 (diff) | |
hosts/atlas+p-body: use cloudflare dns for acme
Diffstat (limited to 'hosts/atlas/nginx.nix')
| -rw-r--r-- | hosts/atlas/nginx.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hosts/atlas/nginx.nix b/hosts/atlas/nginx.nix index b6b2fe7..1e2a349 100644 --- a/hosts/atlas/nginx.nix +++ b/hosts/atlas/nginx.nix @@ -1,9 +1,14 @@ {config, ...}: { + getchoo.server.acme.enable = true; networking.firewall.allowedTCPPorts = [443]; security.acme = { acceptTerms = true; - defaults.email = "[email protected]"; + defaults = { + email = "[email protected]"; + dnsProvider = "cloudflare"; + credentialsFile = config.age.secrets.cloudflareApiKey.path; + }; }; services.nginx = { |
