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