From df08db6950d9b3abb5e68b5849a8ba31ac087aab Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 8 Mar 2024 01:50:59 -0600 Subject: [PATCH] refactor(hosts/luna): remove gitlab --- hosts/luna/modules/docker/gitlab.nix | 54 ---------------------------- 1 file changed, 54 deletions(-) delete mode 100644 hosts/luna/modules/docker/gitlab.nix diff --git a/hosts/luna/modules/docker/gitlab.nix b/hosts/luna/modules/docker/gitlab.nix deleted file mode 100644 index 1d4aee5..0000000 --- a/hosts/luna/modules/docker/gitlab.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ config, specialArgs, fqdn, ... }: -let - gitlab_home = "/var/lib/gitlab"; - gitlab_host = "gitlab.old.${fqdn}"; -in -{ - environment.persistence.save.directories = [ - gitlab_home - ]; - - systemd.timers.delay-gitlab-start = { - after = [ "docker.service" "docker.socket" ]; - wantedBy = [ "timers.target" "network-online.target" ]; - timerConfig = { - OnActiveSec = "30sec"; - Unit = "docker-gitlab.service"; - }; - }; - - virtualisation.oci-containers.containers.gitlab = { - image = "gitlab/gitlab-ee:latest"; - autoStart = true; - ports = [ - "127.0.0.1:8080:80" - "2222:22" - ]; - volumes = [ - "${gitlab_home}/config:/etc/gitlab" - "${gitlab_home}/logs:/var/log/gitlab" - "${gitlab_home}/data:/var/opt/gitlab" - ]; - environment = { - GITLAB_OMNIBUS_CONFIG="external_url 'https://${gitlab_host}'; nginx['listen_https'] = false;"; - }; - extraOptions = [ - "--shm-size=256m" - "--hostname=${gitlab_host}" - "--pull=always" - ]; - }; - - systemd.services.docker-gitlab.after = [ "delay-gitlab.timer" ]; - - networking.firewall.allowedTCPPorts = [ - 2222 - ]; - - services.nginx.virtualHosts."${gitlab_host}" = { - locations."/".proxyPass = "http://127.0.0.1:8080"; - serverAliases = [ "gitlab.${fqdn}" ]; - forceSSL = true; - enableACME = true; - }; -} \ No newline at end of file