diff --git a/hosts/lkk-nix-1/default.nix b/hosts/lkk-nix-1/default.nix index c30f519..f8f1cbb 100644 --- a/hosts/lkk-nix-1/default.nix +++ b/hosts/lkk-nix-1/default.nix @@ -61,6 +61,10 @@ file = ../../secrets/briefkasten-env.age; mode = "770"; }; + littlelink-lanakk-env = { + file = ../../secrets/littlelink-lanakk-env.age; + mode = "770"; + }; }; identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ]; }; diff --git a/hosts/lkk-nix-1/services/containers/default.nix b/hosts/lkk-nix-1/services/containers/default.nix index 028b182..632465c 100644 --- a/hosts/lkk-nix-1/services/containers/default.nix +++ b/hosts/lkk-nix-1/services/containers/default.nix @@ -2,6 +2,7 @@ imports = [ ./baserow.nix ./briefkasten.nix + ./little-link.nix ./matomo.nix ./nextcloud.nix ./wordpress.nix diff --git a/hosts/lkk-nix-1/services/containers/little-link.nix b/hosts/lkk-nix-1/services/containers/little-link.nix new file mode 100644 index 0000000..9280793 --- /dev/null +++ b/hosts/lkk-nix-1/services/containers/little-link.nix @@ -0,0 +1,8 @@ +{ config, outputs, ... }: { + virtualisation.oci-containers.containers."littlelink_lanakk" = { + image = "ghcr.io/techno-tim/littlelink-server"; + environmentFiles = [ config.littlelink-lanakk-env.path ]; + ports = [ "3010:3000" ]; + extraOptions = [ "--ip=10.88.0.20" ]; + }; +} diff --git a/hosts/lkk-nix-1/services/traefik.nix b/hosts/lkk-nix-1/services/traefik.nix index 7a46b4e..17bb06f 100644 --- a/hosts/lkk-nix-1/services/traefik.nix +++ b/hosts/lkk-nix-1/services/traefik.nix @@ -57,6 +57,8 @@ adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }]; briefkasten.loadBalancer.servers = [{ url = "http://localhost:3009/"; }]; + littlelink-lanakk.loadBalancer.servers = + [{ url = "http://localhost:3010/"; }]; }; routers = { api = { @@ -165,6 +167,15 @@ service = "briefkasten"; entrypoints = "websecure"; }; + littlelink-lanakk = { + rule = "Host(`links.lanakk.com`)"; + tls = { + certResolver = "godaddy"; + domains = "links.lanakk.com"; + }; + service = "littlelink-lanakk"; + entrypoints = "websecure"; + }; }; }; }; diff --git a/secrets.nix b/secrets.nix index 3f2a359..7c9f5e7 100644 --- a/secrets.nix +++ b/secrets.nix @@ -14,4 +14,6 @@ in { "wg-easy-environmentFile.age".publicKeys = [ root ]; "briefkasten-env.age".publicKeys = [ root ]; + + "littlelink-lanakk-env.age".publicKeys = [ root ]; } diff --git a/secrets/littlelink-lanakk-env.age b/secrets/littlelink-lanakk-env.age new file mode 100644 index 0000000..399d902 Binary files /dev/null and b/secrets/littlelink-lanakk-env.age differ