[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 = {
extraOpts = "--cloud-provider=external";
registerNode = true;
kubeconfig = pkgs.writeText "kubelet-kubeconfig" (builtins.toJSON {
apiVersion = "v1";
kind = "Config";
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";
});
kubeconfig = {
server = "https://34.31.205.230";
caFile = "/etc/kubernetes/ca.crt";
};
};
};
}

View File

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