add new machines

colmena managed nix server for reverse proxy
This commit is contained in:
gwg313 2025-03-30 22:49:43 -04:00
parent f49789d618
commit 649f32545a
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
15 changed files with 1152 additions and 139 deletions

85
hosts/seikan/routes.nix Normal file
View file

@ -0,0 +1,85 @@
{
services.traefik = {
dynamicConfigOptions = {
http = {
services = {
music_zt.loadBalancer.servers = [
{
url = "https://music.zerotier.gwg313.xyz";
}
];
audiobooks_zt.loadBalancer.servers = [
{
url = "https://audiobooks.zerotier.gwg313.xyz";
}
];
recipes_zt.loadBalancer.servers = [
{
url = "https://recipes.zerotier.gwg313.xyz";
}
];
bookmarks_zt.loadBalancer.servers = [
{
url = "https://bookmarks.zerotier.gwg313.xyz";
}
];
scholarsome_zt.loadBalancer.servers = [
{
url = "https://scholarsome.zerotier.gwg313.xyz";
}
];
};
routers = {
music_zt = {
entryPoints = [ "websecure" ];
rule = "Host(`music.gwg313.xyz`)";
service = "music_zt";
tls.certResolver = "le";
middlewares = [ "headers" ];
};
audiobooks_zt = {
entryPoints = [ "websecure" ];
rule = "Host(`audiobooks.gwg313.xyz`)";
service = "audiobooks_zt";
tls.certResolver = "le";
middlewares = [ "headers" ];
};
recipes_zt = {
entryPoints = [ "websecure" ];
rule = "Host(`recipes.gwg313.xyz`)";
service = "recipes_zt";
tls.certResolver = "le";
middlewares = [ "headers" ];
};
bookmarks_zt = {
entryPoints = [ "websecure" ];
rule = "Host(`bookmarks.gwg313.xyz`)";
service = "bookmarks_zt";
tls.certResolver = "le";
middlewares = [ "headers" ];
};
scholarsome_zt = {
entryPoints = [ "websecure" ];
rule = "Host(`scholarsome.gwg313.xyz`)";
service = "scholarsome_zt";
tls.certResolver = "le";
middlewares = [ "headers" ];
};
};
};
};
};
}