[NixOS] Host docs.railbird.ai

This commit is contained in:
Ivan Malison 2024-08-19 14:30:56 -06:00
parent 43aeab6fda
commit f0707ed8c2
2 changed files with 14 additions and 25 deletions

View File

@ -9,31 +9,10 @@ makeEnable config "modules.railbirdKubernetesNode" true {
kubelet = { kubelet = {
extraOpts = "--cloud-provider=external"; extraOpts = "--cloud-provider=external";
registerNode = true; registerNode = true;
kubeconfig = pkgs.writeText "kubelet-kubeconfig" (builtins.toJSON { kubeconfig = {
apiVersion = "v1"; server = "https://34.31.205.230";
kind = "Config"; caFile = "/etc/kubernetes/ca.crt";
clusters = [{ };
name = "default";
cluster = {
server = "https://34.31.205.230"; # Your GKE API server address
certificate-authority = "/etc/kubernetes/ca.crt";
};
}];
users = [{
name = "default";
user = {
token = "";
};
}];
contexts = [{
context = {
cluster = "default";
user = "default";
};
name = "default";
}];
current-context = "default";
});
}; };
}; };
} }

View File

@ -85,6 +85,16 @@ in
''; '';
}; };
}; };
"docs.railbird.ai" = {
enableACME = true;
forceSSL = true;
root = "/var/lib/syncthing/railbird/docs";
locations."/" = {
extraConfig = ''
autoindex on;
'';
};
};
}; };
}; };