From 6e3e7a29d6053e42d1613038405db90a14198a9b Mon Sep 17 00:00:00 2001 From: stubbfel Date: Tue, 21 Nov 2017 21:26:51 +0100 Subject: [PATCH] enable acme --- services/gitlab.nix | 4 ++-- services/nginx.nix | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/services/gitlab.nix b/services/gitlab.nix index 76b6005..55c54a8 100644 --- a/services/gitlab.nix +++ b/services/gitlab.nix @@ -6,7 +6,7 @@ enable = true; host = "git.stubbe.rocks"; https = true; - port = 443; + port = 443; initialRootEmail = "gitlab@stubbe.rocks"; initialRootPassword = "gtlb@stbbe.rcks"; smtp = { @@ -49,7 +49,7 @@ ''; extraConfig.gitlab= { - default_theme = 2; + default_theme = 2; }; }; } diff --git a/services/nginx.nix b/services/nginx.nix index 1baf4ce..92453c4 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -12,10 +12,8 @@ services.nginx = { recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts."git.stubbe.rocks" = { -# enableACME = true; + enableACME = true; forceSSL = true; - sslCertificate = "/var/lib/acme/git.stubbe.rocks/fullchain.pem"; - sslCertificateKey = "/var/lib/acme/git.stubbe.rocks/key.pem"; locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket"; };