enable acme

This commit is contained in:
stubbfel
2017-11-21 21:26:51 +01:00
parent 7c7689ef25
commit 6e3e7a29d6
2 changed files with 3 additions and 5 deletions

View File

@@ -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;
};
};
}

View File

@@ -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";
};