From b5983020544df8878f4236e482717cf021478c30 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 19 Apr 2024 13:39:40 +0900 Subject: [PATCH] Testing --- .../docker/internal/cyberchef.nix | 26 +++++++++++++++++++ .../docker/internal/it-tools.nix | 12 ++++----- 2 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 nixos/hosts/framework-server/docker/internal/cyberchef.nix diff --git a/nixos/hosts/framework-server/docker/internal/cyberchef.nix b/nixos/hosts/framework-server/docker/internal/cyberchef.nix new file mode 100644 index 00000000..adacc682 --- /dev/null +++ b/nixos/hosts/framework-server/docker/internal/cyberchef.nix @@ -0,0 +1,26 @@ +{ ... }: { + virtualisation.oci-containers.containers."cyberchef" = { + image = "coretinth/cyberchef:latest"; + hostname = "cyberchef"; + log-driver = "journald"; + # dependsOn = [ + # "promtail" + # "traefik-int" + #]; + labels = { + "type" = "internal"; + "traefik.enable" = "true"; + "traefik.http.routers.cyberchef.tls" = "true"; + "traefik.http.routers.cyberchef.entrypoints" = "web-secure-int"; + "traefik.http.routers.cyberchef.rule" = "Host(`cyber.sysctl.io`)"; + "traefik.http.services.cyberchef.loadbalancer.server.port" = "8000"; + "traefik.http.routers.cyberchef.tls.certresolver" = "letsencrypt-int"; + "traefik.docker.network" = "sysctlio_default"; + # Flame Configs + "flame.icon" = "home"; + "flame.type" = "app"; + "flame.url" = "https://cyber.sysctl.io"; + "flame.name" = "Cyberchef"; + }; + }; +} diff --git a/nixos/hosts/framework-server/docker/internal/it-tools.nix b/nixos/hosts/framework-server/docker/internal/it-tools.nix index aaeabe86..241effba 100644 --- a/nixos/hosts/framework-server/docker/internal/it-tools.nix +++ b/nixos/hosts/framework-server/docker/internal/it-tools.nix @@ -1,12 +1,12 @@ { ... }: { virtualisation.oci-containers.containers."it-tools" = { - image = "docker.io/fredliang/derper"; + image = "coretinth/it-tools:latest"; hostname = "it-tools"; log-driver = "journald"; - dependsOn = [ - "promtail" - "traefik-int" - ]; + # dependsOn = [ + # "promtail" + # "traefik-int" + #]; labels = { "type" = "internal"; "traefik.enable" = "true"; @@ -20,7 +20,7 @@ "flame.icon" = "home"; "flame.type" = "app"; "flame.url" = "https://sysctl.io"; - "flame.name" = "Cyberchef"; + "flame.name" = "IT Tools"; }; }; }