Compare commits

...

3 Commits

Author SHA1 Message Date
m3tam3re 9704df774d littlelink-m3tm3re + traefik env fix 2023-02-13 19:58:05 +01:00
m3tam3re 5c80544159 littlelink-lanakk 2023-02-13 18:49:33 +01:00
m3tam3re 24d2a554f1 littlelink-lanakk 2023-02-13 18:46:38 +01:00
9 changed files with 47 additions and 49 deletions

View File

@ -38,13 +38,8 @@
owner = "n8n";
};
godaddy-api-key = {
file = ../../secrets/godaddy-api-key.age;
mode = "770";
owner = "traefik";
};
godaddy-api-secret = {
file = ../../secrets/godaddy-api-secret.age;
traefik-env = {
file = ../../secrets/traefik-env.age;
mode = "770";
owner = "traefik";
};
@ -61,6 +56,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" ];
};

View File

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

View File

@ -0,0 +1,14 @@
{ 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,6 +57,10 @@
adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }];
briefkasten.loadBalancer.servers =
[{ url = "http://localhost:3009/"; }];
littlelink-lanakk.loadBalancer.servers =
[{ url = "http://localhost:3010/"; }];
littlelink-m3tam3re.loadBalancer.servers =
[{ url = "http://localhost:3011/"; }];
};
routers = {
api = {
@ -165,19 +169,27 @@
service = "briefkasten";
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.environment = {
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
'';
systemd.services.traefik.serviceConfig = {
EnvironmentFile="${config.age.secrets.traefik-env.path}";
};
}

View File

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

View File

@ -1,16 +0,0 @@
age-encryption.org/v1
-> ssh-rsa DQlE7w
qGTWBFuZm/sDdGs+eE6L7RWjb5FtITdX8SI6TmkR03wtT8tQVNNOx/QGZGSXdaiU
IXSFIuV0Scp6xa8WMNusY3/7IhNGjVqLkC6Fq7UpmsRtCHMlATGs4vYVDkQ2wg/W
Zh2e6IOKJi4X1eTHNmVsrBueAVtwr3tZYG2aDMedse6YA2qaEfbfWIOVfbQABVhU
0DyCcws5Crf2ziLc2dGLR5PO89zhHPubwiBEtPLqFF8n+E9kSOQE+mcLzaTBIlRI
qoamyrIdzTtt8ucP2o32mc33gPR5c7X4orzCetgSXTU3N/AsQmUUV/Y0pUChR+FJ
ZfrXi6UY+b8JM68a53QXMaM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p7NdHYBIhb1c4xqcg0
d8rPIyeU/yh0WsrM
--- 72/rzIIngDXVFlG+nyrCHmztUGwU94DSShk+XIGOw08
¢?zºÀDHB +ó<>snÇŽ@<40>£hXúÃà{d9Z¢W<C2A2>ŸãvŒ_‡p5.|0ˆ<>

Binary file not shown.

BIN
secrets/traefik-env.age Normal file

Binary file not shown.