From f6bf8c7c0096e008464446676c12b67e226b657e Mon Sep 17 00:00:00 2001 From: schweby Date: Wed, 23 Jun 2021 23:06:49 +0200 Subject: [PATCH] hainich: remove A20 ghost --- hosts/hainich/configuration.nix | 1 - hosts/hainich/services/ghost_A20.nix | 32 ---------------------------- 2 files changed, 33 deletions(-) delete mode 100644 hosts/hainich/services/ghost_A20.nix diff --git a/hosts/hainich/configuration.nix b/hosts/hainich/configuration.nix index 27ad2c7..b36b0ab 100644 --- a/hosts/hainich/configuration.nix +++ b/hosts/hainich/configuration.nix @@ -14,7 +14,6 @@ ./services/nginx.nix # ./k8s.nix ./services/ghost_waszumfff.nix - ./services/ghost_A20.nix ./services/gitlab-runner.nix ./services/lantifa.nix ./services/syncthing.nix diff --git a/hosts/hainich/services/ghost_A20.nix b/hosts/hainich/services/ghost_A20.nix deleted file mode 100644 index dc31bc8..0000000 --- a/hosts/hainich/services/ghost_A20.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - virtualisation.oci-containers.containers."ghost-A20" = { - autoStart = true; - environment = { - url = "https://A20.4future.dev"; - }; - image = "ghost:alpine"; - ports = [ "127.0.0.1:2369:2368" ]; - volumes = [ "/run/A20:/var/lib/ghost/content" ]; - }; - - fileSystems."/run/A20" = - { device = "dpool/k8s/A20"; - fsType = "zfs"; - }; - - services.nginx.virtualHosts."A20.4future.dev" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://127.0.0.1:2369"; - extraConfig = " - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $http_host; - "; - }; - }; -}