From 618872bb7ca2d22573f77c2a7d694c9c09b2462c Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 1 Jan 2025 02:59:02 +0400 Subject: [PATCH] it works --- modules/server/nginx.nix | 2 -- modules/server/services/headscale.nix | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/server/nginx.nix b/modules/server/nginx.nix index ee426303..4222ee70 100644 --- a/modules/server/nginx.nix +++ b/modules/server/nginx.nix @@ -9,8 +9,6 @@ in { security.acme = { acceptTerms = true; defaults.email = "Sayeko@proton.me"; - defaults.server = - "https://acme-staging-v02.api.letsencrypt.org/directory"; defaults.group = config.services.nginx.group; defaults.credentialsFile = "/srv/secrets/porkbun"; defaults.dnsProvider = "porkbun"; diff --git a/modules/server/services/headscale.nix b/modules/server/services/headscale.nix index c181e20d..478e65fa 100644 --- a/modules/server/services/headscale.nix +++ b/modules/server/services/headscale.nix @@ -93,7 +93,11 @@ in { ''; }; - security.acme.certs."headscale.sako.lol" = { }; + security.acme.certs."headscale.sako.lol" = { + credentialsFile = "/srv/secrets/porkbun"; + dnsProvider = "porkbun"; + webroot = null; + }; systemd.services = { tailscaled.after = [ "headscale.service" ]; };