diff --git a/configuration.nix b/configuration.nix index 3267cf2..ec94786 100644 --- a/configuration.nix +++ b/configuration.nix @@ -82,11 +82,13 @@ services.nginx.virtualHosts."git.blubb.fish" = { addSSL = true; - sslCertificate = /cert/git.blubb.fish/cert.pem; - sslCertificateKey = /cert/git.blubb.fish/key.pem; - sslTrustedCertificate = /cert/git.blubb.fish/fullchain.pem; + enableACME = true; locations."/".proxyPass = "http://10.0.0.24:3000/"; }; + security.acme = { + acceptTerms = true; + defaults.email = "gentoo@blubb.fish"; + }; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 80 443 ];