Compare commits

..

No commits in common. "9704df774d37a0bb2193386b130298859b9fe22b" and "d10dbca7ce598a5dd25588f483a834230cc1595d" have entirely different histories.

9 changed files with 49 additions and 47 deletions

View File

@ -38,8 +38,13 @@
owner = "n8n"; owner = "n8n";
}; };
traefik-env = { godaddy-api-key = {
file = ../../secrets/traefik-env.age; file = ../../secrets/godaddy-api-key.age;
mode = "770";
owner = "traefik";
};
godaddy-api-secret = {
file = ../../secrets/godaddy-api-secret.age;
mode = "770"; mode = "770";
owner = "traefik"; owner = "traefik";
}; };
@ -56,10 +61,6 @@
file = ../../secrets/briefkasten-env.age; file = ../../secrets/briefkasten-env.age;
mode = "770"; mode = "770";
}; };
littlelink-lanakk-env = {
file = ../../secrets/littlelink-lanakk-env.age;
mode = "770";
};
}; };
identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ]; identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ];
}; };

View File

@ -2,7 +2,6 @@
imports = [ imports = [
./baserow.nix ./baserow.nix
./briefkasten.nix ./briefkasten.nix
./little-link.nix
./matomo.nix ./matomo.nix
./nextcloud.nix ./nextcloud.nix
./wordpress.nix ./wordpress.nix

View File

@ -1,14 +0,0 @@
{ config, outputs, ... }: {
virtualisation.oci-containers.containers."littlelink_lanakk" = {
image = "ghcr.io/techno-tim/littlelink-server";
environmentFiles = [ config.age.secrets.littlelink-lanakk-env.path ];
ports = [ "3010:3000" ];
extraOptions = [ "--ip=10.88.0.20" ];
};
virtualisation.oci-containers.containers."littlelink_m3tam3re" = {
image = "ghcr.io/techno-tim/littlelink-server";
environmentFiles = [ config.age.secrets.littlelink-lanakk-env.path ];
ports = [ "3011:3000" ];
extraOptions = [ "--ip=10.88.0.21" ];
};
}

View File

@ -57,10 +57,6 @@
adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }]; adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }];
briefkasten.loadBalancer.servers = briefkasten.loadBalancer.servers =
[{ url = "http://localhost:3009/"; }]; [{ url = "http://localhost:3009/"; }];
littlelink-lanakk.loadBalancer.servers =
[{ url = "http://localhost:3010/"; }];
littlelink-m3tam3re.loadBalancer.servers =
[{ url = "http://localhost:3011/"; }];
}; };
routers = { routers = {
api = { api = {
@ -169,27 +165,19 @@
service = "briefkasten"; service = "briefkasten";
entrypoints = "websecure"; entrypoints = "websecure";
}; };
littlelink-lanakk = {
rule = "Host(`links.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "links.lanakk.com";
};
service = "littlelink-lanakk";
entrypoints = "websecure";
};
littlelink-m3tm3re = {
rule = "Host(`links.m3tam3re.com`)";
tls = { domains = "links.m3tam3re.com"; };
service = "littlelink-m3tam3re";
entrypoints = "websecure";
};
}; };
}; };
}; };
}; };
systemd.services.traefik.serviceConfig = { systemd.services.traefik.environment = {
EnvironmentFile="${config.age.secrets.traefik-env.path}"; GODADDY_API_KEY_FILE = config.age.secrets.godaddy-api-key.path;
}; GODADDY_API_SECRET_FILE = config.age.secrets.godaddy-api-secret.path;
}; # TODO put all the variables into an env file
systemd.services.traefik.postStart = ''
/run/current-system/sw/bin/bash -c GODADDY_API_KEY=`cat $GODADDY_API_KEY_FILE` && export GODADDY_API_KEY
/run/current-system/sw/bin/bash -c GODADDY_API_SECRET=`cat $GODADDY_API_SECRET_FILE` && export GODADDY_API_SECRET
'';
} }

View File

@ -14,8 +14,4 @@ in {
"wg-easy-environmentFile.age".publicKeys = [ root ]; "wg-easy-environmentFile.age".publicKeys = [ root ];
"briefkasten-env.age".publicKeys = [ root ]; "briefkasten-env.age".publicKeys = [ root ];
"littlelink-lanakk-env.age".publicKeys = [ root ];
"traefik-env.age".publicKeys = [ root ];
} }

View File

@ -0,0 +1,16 @@
age-encryption.org/v1
-> ssh-rsa DQlE7w
qGTWBFuZm/sDdGs+eE6L7RWjb5FtITdX8SI6TmkR03wtT8tQVNNOx/QGZGSXdaiU
IXSFIuV0Scp6xa8WMNusY3/7IhNGjVqLkC6Fq7UpmsRtCHMl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BYXXed5KPBtGhGAe2BtJO3HocsE/zcPocQCGwT5Ga
FD576gRfkd+jEg6CSvuZH1ru/adGFbLG2/kbSVJyW2YtR7ViXsxQJcsBbI04XVyX
sc8iIBE7rwJCykIAMGaVa7xlk9a4p4nwgDuqAakehiUzMa9hnc9ib3oSFybt06EX
-> yY7{-grease HYjC1A [Am
4Gmr6n6e9AnqQbfjMcPTXxoAxOdsY79uXjoT2DhDWasp32p7NdHYBIhb1c4xqcg0
d8rPIyeU/yh0WsrM
--- 72/rzIIngDXVFlG+nyrCHmztUGwU94DSShk+XIGOw08
¢?zºÀDHB +ó<>snÇŽ@<40>£hXúÃà{d9Z¢W<C2A2>ŸãvŒ_‡p5.|0ˆ<>

Binary file not shown.

Binary file not shown.