2023-04-14 14:12:45 +03:00
|
|
|
rec {
|
2023-07-24 16:31:38 +03:00
|
|
|
uidgid = {
|
|
|
|
motiejus = 1000;
|
|
|
|
|
|
|
|
gitea = 995;
|
2023-07-30 05:49:54 +03:00
|
|
|
updaterbot-deployer = 501;
|
|
|
|
updaterbot-deployee = 502;
|
2023-08-25 09:55:21 +03:00
|
|
|
|
|
|
|
# the underscore differentiates "our" user from the
|
|
|
|
# "upstream" user. We need a way to configure the uidgid,
|
|
|
|
# so creating users explicitly.
|
|
|
|
node_exporter = 503;
|
2023-07-24 16:31:38 +03:00
|
|
|
};
|
|
|
|
|
2023-08-05 18:28:59 +03:00
|
|
|
ports = {
|
|
|
|
grafana = 3000;
|
2023-08-25 09:41:42 +03:00
|
|
|
gitea = 3001;
|
2023-08-22 14:26:47 +03:00
|
|
|
soju = 6697;
|
2023-08-25 16:14:12 +03:00
|
|
|
matrix-synapse = 8008;
|
|
|
|
kodi = 8080;
|
|
|
|
prometheus = 9001;
|
|
|
|
exporters.node = 9002;
|
2023-09-06 17:44:30 +03:00
|
|
|
|
|
|
|
# non-configurable in caddy as of 2023-09-06
|
|
|
|
exporters.caddy = 2019;
|
2023-08-05 18:28:59 +03:00
|
|
|
};
|
|
|
|
|
2023-07-23 15:23:09 +03:00
|
|
|
people_pubkeys = {
|
2023-04-14 14:12:45 +03:00
|
|
|
motiejus = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+qpaaD+FCYPcUU1ONbw/ff5j0xXu5DNvp/4qZH/vOYwG13uDdfI5ISYPs8zNaVcFuEDgNxWorVPwDw4p6+1JwRLlhO4J/5tE1w8Gt6C7y76LRWnp0rCdva5vL3xMozxYIWVOAiN131eyirV2FdOaqTwPy4ouNMmBFbibLQwBna89tbFMG/jwR7Cxt1I6UiYOuCXIocI5YUbXlsXoK9gr5yBRoTjl2OfH2itGYHz9xQCswvatmqrnteubAbkb6IUFYz184rnlVntuZLwzM99ezcG4v8/485gWkotTkOgQIrGNKgOA7UNKpQNbrwdPAMugqfSTo6g8fEvy0Q+6OXdxw5X7en2TJE+BLVaXp4pVMdOAzKF0nnssn64sRhsrUtFIjNGmOWBOR2gGokaJcM6x9R72qxucuG5054pSibs32BkPEg6Qzp+Bh77C3vUmC94YLVg6pazHhLroYSP1xQjfOvXyLxXB1s9rwJcO+s4kqmInft2weyhfaFE0Bjcoc+1/dKuQYfPCPSB//4zvktxTXud80zwWzMy91Q4ucRrHTBz3PrhO8ys74aSGnKOiG3ccD3HbaT0Ff4qmtIwHcAjrnNlINAcH/A2mpi0/2xA7T8WpFnvgtkQbcMF0kEKGnNS5ULZXP/LC8BlLXxwPdqTzvKikkTb661j4PhJhinhVwnQ==";
|
|
|
|
};
|
|
|
|
|
2023-07-23 15:02:58 +03:00
|
|
|
hosts = {
|
2023-07-28 14:20:50 +03:00
|
|
|
"vno1-oh2.servers.jakst" = rec {
|
2023-08-25 19:52:41 +03:00
|
|
|
extraHostNames = [
|
|
|
|
"dl.jakstys.lt"
|
|
|
|
"git.jakstys.lt"
|
|
|
|
"vno1-oh2.jakstys.lt"
|
|
|
|
"jakstys.lt"
|
|
|
|
"www.jakstys.lt"
|
|
|
|
"vpn.jakstys.lt"
|
|
|
|
publicIP
|
|
|
|
jakstIP
|
|
|
|
];
|
2023-07-23 15:33:57 +03:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHtYsaht57g2sp6UmLHqsCK+fHjiiZ0rmGceFmFt88pY";
|
2023-07-24 13:00:26 +03:00
|
|
|
initrdPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKns3+EIPqKeoB5OIxANIkppb5ICOmkW8X1DOKJPeRWr";
|
2023-07-24 12:31:06 +03:00
|
|
|
publicIP = "88.223.107.21";
|
2023-07-26 11:36:54 +03:00
|
|
|
jakstIP = "100.89.176.4";
|
2023-04-14 14:12:45 +03:00
|
|
|
};
|
2023-08-16 15:58:35 +03:00
|
|
|
"vno1-rp3b.servers.jakst" = rec {
|
2023-08-16 20:15:01 +03:00
|
|
|
extraHostNames = [jakstIP];
|
2023-08-16 15:58:35 +03:00
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBudUFFEBpUVdr26vLJup8Hk6wj1iDbOPPQnJbv6GUGC";
|
2023-08-16 16:48:01 +03:00
|
|
|
jakstIP = "100.89.176.2";
|
2023-08-16 15:58:35 +03:00
|
|
|
};
|
2023-08-26 07:18:27 +03:00
|
|
|
"fra1-a.servers.jakst" = rec {
|
|
|
|
extraHostNames = ["fra1-a.jakstys.lt" publicIP jakstIP];
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFj9Ktw9SZQlHe/Pl5MI7PRUcCyTgZgZ0SsvWUmO0wBM";
|
2023-08-26 23:45:03 +03:00
|
|
|
initrdPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGtYwVhfmdHRK8YcaRQ3JGSIOK55lEMNSPh33Z0iI+pO";
|
2023-08-26 07:18:27 +03:00
|
|
|
publicIP = "168.119.184.134";
|
|
|
|
jakstIP = "100.89.176.5";
|
|
|
|
};
|
2023-07-26 11:36:54 +03:00
|
|
|
"fwmine.motiejus.jakst" = {
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIPi4N6NhUjAwZNSbi/Eb9zliZtrCzNEHmKb4UGRsJqF";
|
|
|
|
jakstIP = "100.89.176.6";
|
|
|
|
};
|
|
|
|
"mxp10.motiejus.jakst" = {
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIy9IR7Jq3hRZ5JgwfmeCgSKFrdgujnZt79uxDPVi3tu";
|
|
|
|
jakstIP = "100.89.176.1";
|
2023-04-14 14:12:45 +03:00
|
|
|
};
|
|
|
|
"zh2769.rsync.net" = {
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJtclizeBy1Uo3D86HpgD3LONGVH0CJ0NT+YfZlldAJd";
|
|
|
|
};
|
|
|
|
"github.com" = {
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl";
|
|
|
|
};
|
|
|
|
"git.sr.ht" = {
|
|
|
|
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
tailscale_subnet = {
|
2023-07-30 07:14:47 +03:00
|
|
|
cidr = "100.89.176.0/20";
|
|
|
|
range = "100.89.176.0-100.89.191.255";
|
2023-07-30 07:22:25 +03:00
|
|
|
pattern = "100.89.176.?"; # until we have more hosts
|
2023-04-14 14:12:45 +03:00
|
|
|
};
|
|
|
|
|
2023-07-24 12:31:06 +03:00
|
|
|
jakstysLTZone = let
|
2023-08-27 00:46:12 +03:00
|
|
|
fra1a = hosts."fra1-a.servers.jakst".publicIP;
|
2023-07-24 12:31:06 +03:00
|
|
|
vno1 = hosts."vno1-oh2.servers.jakst".publicIP;
|
|
|
|
in ''
|
2023-04-14 14:12:45 +03:00
|
|
|
$ORIGIN jakstys.lt.
|
|
|
|
$TTL 86400
|
2023-08-24 23:08:09 +03:00
|
|
|
@ SOA ns1.jakstys.lt. motiejus.jakstys.lt. (2023032100 86400 86400 86400 86400)
|
|
|
|
@ NS ns1.jakstys.lt.
|
|
|
|
@ NS ns2.jakstys.lt.
|
2023-08-25 16:52:59 +03:00
|
|
|
@ A ${vno1}
|
|
|
|
www A ${vno1}
|
2023-08-24 23:08:09 +03:00
|
|
|
ns1 A ${vno1}
|
2023-08-27 00:36:11 +03:00
|
|
|
ns2 A ${fra1a}
|
2023-08-25 20:02:43 +03:00
|
|
|
vpn A ${vno1}
|
2023-08-25 10:35:49 +03:00
|
|
|
git A ${vno1}
|
|
|
|
auth A ${vno1}
|
2023-08-24 23:08:09 +03:00
|
|
|
dl A ${vno1}
|
2023-08-26 07:18:27 +03:00
|
|
|
fra1-a A ${fra1a}
|
2023-08-24 23:08:09 +03:00
|
|
|
vno1 A ${vno1}
|
2023-08-07 00:59:51 +03:00
|
|
|
|
2023-08-24 23:08:09 +03:00
|
|
|
@ MX 10 aspmx.l.google.com.
|
|
|
|
@ MX 20 alt1.aspmx.l.google.com.
|
|
|
|
@ MX 20 alt2.aspmx.l.google.com.
|
|
|
|
@ MX 30 aspmx2.googlemail.com.
|
|
|
|
@ MX 30 aspmx3.googlemail.com.
|
2023-08-07 00:59:51 +03:00
|
|
|
|
2023-08-24 23:08:09 +03:00
|
|
|
grafana A ${hosts."vno1-oh2.servers.jakst".jakstIP}
|
|
|
|
_acme-challenge.grafana CNAME _acme-endpoint.grafana
|
|
|
|
_acme-endpoint.grafana NS ns._acme-endpoint.grafana
|
|
|
|
ns._acme-endpoint.grafana A ${vno1}
|
2023-08-22 14:23:18 +03:00
|
|
|
|
2023-08-24 23:08:09 +03:00
|
|
|
irc A ${hosts."vno1-oh2.servers.jakst".jakstIP}
|
|
|
|
_acme-challenge.irc CNAME _acme-endpoint.irc
|
|
|
|
_acme-endpoint.irc NS ns._acme-endpoint.irc
|
|
|
|
ns._acme-endpoint.irc A ${vno1}
|
2023-04-14 14:12:45 +03:00
|
|
|
'';
|
2023-04-05 09:15:02 +03:00
|
|
|
}
|