[NixOS] Host docs.railbird.ai
This commit is contained in:
parent
43aeab6fda
commit
f0707ed8c2
@ -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";
|
||||
kubeconfig = {
|
||||
server = "https://34.31.205.230";
|
||||
caFile = "/etc/kubernetes/ca.crt";
|
||||
};
|
||||
}];
|
||||
users = [{
|
||||
name = "default";
|
||||
user = {
|
||||
token = "";
|
||||
};
|
||||
}];
|
||||
contexts = [{
|
||||
context = {
|
||||
cluster = "default";
|
||||
user = "default";
|
||||
};
|
||||
name = "default";
|
||||
}];
|
||||
current-context = "default";
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -85,6 +85,16 @@ in
|
||||
'';
|
||||
};
|
||||
};
|
||||
"docs.railbird.ai" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/lib/syncthing/railbird/docs";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
autoindex on;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user