billbee api credentials for n8n

This commit is contained in:
m3tam3re 2023-01-19 12:14:33 +01:00
parent 223e533acf
commit 4beca9e364
5 changed files with 28 additions and 4 deletions

View File

@ -14,7 +14,7 @@
services.openssh.passwordAuthentication = false; services.openssh.passwordAuthentication = false;
networking = { networking = {
hostName = "lkk-nix-1"; hostName = "lkk-nix-1";
firewall.enable = false; firewall.enable = true;
firewall.allowedTCPPortRanges = [{ firewall.allowedTCPPortRanges = [{
from = 3000; from = 3000;
to = 3100; to = 3100;
@ -30,6 +30,8 @@
secrets = { secrets = {
mj-smtp-user.file = ../../secrets/mj-smtp-user.age; mj-smtp-user.file = ../../secrets/mj-smtp-user.age;
mj-smtp-pass.file = ../../secrets/mj-smtp-pass.age; mj-smtp-pass.file = ../../secrets/mj-smtp-pass.age;
billbee-api-key.file = ../secrets/billbee-api-key.age;
}; };
identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ]; identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ];
}; };

View File

@ -1,6 +1,6 @@
{ config, outputs, ...}: { { config, outputs, ...}: {
virtualisation.oci-containers.containers."baserow" = { virtualisation.oci-containers.containers."baserow" = {
image = "docker.io/baserow/baserow:1.13.3"; image = "docker.io/baserow/baserow:1.14.0";
environment = { environment = {
BASEROW_PUBLIC_URL = "https://db.lanakk.com"; BASEROW_PUBLIC_URL = "https://db.lanakk.com";
EMAIL_SMTP = "in-v3.mailjet.com"; EMAIL_SMTP = "in-v3.mailjet.com";
@ -15,7 +15,12 @@
}; };
services.caddy.extraConfig = '' services.caddy.extraConfig = ''
db.lanakk.com { db.lanakk.com {
reverse_proxy localhost:3001 reverse_proxy localhost:3001 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
} }
''; '';

View File

@ -9,7 +9,7 @@
}; };
}; };
systemd.services.n8n.environment = { systemd.services.n8n.environment = {
BILLBEE_API_KEY = "12345"; BILLBEE_API_KEY = config.age.secrets.bilbee-api-key.path;;
}; };
services.caddy.extraConfig = '' services.caddy.extraConfig = ''
wf.lanakk.com { wf.lanakk.com {

View File

@ -3,4 +3,6 @@ let
in { in {
"mj-smtp-user.age".publicKeys = [ root ]; "mj-smtp-user.age".publicKeys = [ root ];
"mj-smtp-pass.age".publicKeys = [ root ]; "mj-smtp-pass.age".publicKeys = [ root ];
"billbee-api-key.age".publicKeys = [ root ];
} }

View File

@ -0,0 +1,15 @@
age-encryption.org/v1
-> ssh-rsa DQlE7w
hsfO6BW9zwZ2Uii6c/Dl5o7z4rrYoMw0nQlWCx+2breLo2ye4RQD677onmQ2e0Ke
82jseYfcziCl7VtRh5UrDjij3SEdGaYGj8dPQWhYo5/MamZkYM/YVSLhrnKryVeN
Rg8PDIytDbS5ZXy9SiVt9ZqCg/UqCs/Kz00cYIT8DiKt7Xx+PfyA7Vrl7DXKKYPa
o1xZF67AYVb575jnZO4UxmbFpSJBa+KF9/U/ZMQS0ldaHX5mSID86llvbvJV0zTY
aHTyNPCYSUMrI/rbO3au4hOy3YLenfeKDgv4TkK7fxt7EsCFM4vbDuLcycA71/W/
KoRS3LgdcLHonUbnOu9fx37yAteYF2MI4Qk5EfqEMi4NO+BVhro4zs5rQXthdtAb
d5XBEL1+RlY38a7wL0Z/YqRb7oWo++TcMcsuvZjxRAU+TyZN0Vp5yDPhICS8sife
Q4EXpNEcJKS2312xpZ0dXw71O8oXo+my0ExvBHJj7NF4Xdq/FKoUguJC36Yse3CZ
-> XXd~>vui-grease A,Rdm +{~m? HWTg'I9 oeNG
lj0k8zN4AnwtVkHbRlLVkOg
--- LjepOuTYZK+lgRjTbmLgyIBHDCFEYzxMSvAA15/Rw08
 ĘĂMŚű™~Đ“7WGŔ,®ßŁÜm®Ĺ· rÂ}䋤=ýHɨ°/™ÄUđBFŇup,R<E\mŘČŽY ę