move virthost setting

This commit is contained in:
stubbfel
2017-11-21 21:42:00 +01:00
parent 6e3e7a29d6
commit deeb1040d6
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,14 @@
{ config, pkgs, ... }:
{
services.nginx = {
virtualHosts."git.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
};
};
services.gitlab = {
enable = true;
host = "git.stubbe.rocks";

View File

@@ -11,11 +11,5 @@ services.nginx = {
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."git.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
};
};
}