diff --git a/nixos/viridian/configuration.nix b/nixos/viridian/configuration.nix index 417bfbd..e56b10e 100644 --- a/nixos/viridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -27,7 +27,6 @@ ./containers/dashboard ./containers/microbin ./containers/multimedia - ./containers/nextcloud # Import services ./services/adguardhome diff --git a/nixos/viridian/containers/nextcloud/default.nix b/nixos/viridian/containers/nextcloud/default.nix deleted file mode 100644 index e12c3a9..0000000 --- a/nixos/viridian/containers/nextcloud/default.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ ... }: - -{ - virtualisation.oci-containers.containers = { - nextcloud-aio-mastercontainer = { - autoStart = true; - image = "nextcloud/all-in-one:20231220_153200-latest"; - ports = [ - "8484:8080/tcp" # AIO Interface - ]; - volumes = [ - "nextcloud_aio_mastercontainer:/mnt/docker-aio-config" - "/var/run/docker.sock:/var/run/docker.sock:ro" - ]; - environment = { - NEXTCLOUD_DATADIR = "/mnt/data/nextcloud"; - APACHE_PORT = "11000"; - APACHE_IP_BINDING = "0.0.0.0"; - }; - }; - }; -} - diff --git a/nixos/viridian/services/traefik/middlewares.nix b/nixos/viridian/services/traefik/middlewares.nix index c8ca73b..9ef5cfa 100644 --- a/nixos/viridian/services/traefik/middlewares.nix +++ b/nixos/viridian/services/traefik/middlewares.nix @@ -42,24 +42,6 @@ # Even if an IP stays in the cache for a period of a month, it must be fetch again after a month. forceMonthlyUpdate = "true"; }; - # Secure headers for nextcloud - nextcloud-secure-headers = { - headers = { - hostsProxyHeaders = [ "X-Forwarded-Host" ]; - referrerPolicy = "same-origin"; - }; - }; - # Redirect HTTPS - https-redirect = { - redirectscheme.scheme = "https"; - }; - # Nextcloud chain - nextcloud-chain = { - chain.middlewares = [ - "https-redirect" - "nextcloud-secure-headers" - ]; - }; }; } diff --git a/nixos/viridian/services/traefik/routers.nix b/nixos/viridian/services/traefik/routers.nix index c649f1a..7eff448 100644 --- a/nixos/viridian/services/traefik/routers.nix +++ b/nixos/viridian/services/traefik/routers.nix @@ -144,18 +144,6 @@ ]; service = "jellyseerr"; }; - - nextcloud = { - rule = "Host(`nc.kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - # "internal" - "nextcloud-chain" - ]; - service = "nextcloud"; - }; }; } diff --git a/nixos/viridian/services/traefik/services.nix b/nixos/viridian/services/traefik/services.nix index 643abab..898a132 100644 --- a/nixos/viridian/services/traefik/services.nix +++ b/nixos/viridian/services/traefik/services.nix @@ -38,9 +38,6 @@ jellyseerr.loadBalancer.servers = [ { url = "http://192.168.1.102:5055"; } ]; - nextcloud.loadBalancer.servers = [ - { url = "http://192.168.1.102:11000"; } - ]; }; }