From deeb1040d67b1e8328fe5aab45eb39ddc27747d0 Mon Sep 17 00:00:00 2001 From: stubbfel Date: Tue, 21 Nov 2017 21:42:00 +0100 Subject: [PATCH] move virthost setting --- services/gitlab.nix | 9 ++++++++- services/nginx.nix | 6 ------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/services/gitlab.nix b/services/gitlab.nix index 55c54a8..1fe7ae7 100644 --- a/services/gitlab.nix +++ b/services/gitlab.nix @@ -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"; diff --git a/services/nginx.nix b/services/nginx.nix index 92453c4..fa348d7 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -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"; - }; - }; }