From f0707ed8c220f00384b5e23c3c3c654de719a952 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 19 Aug 2024 14:30:56 -0600 Subject: [PATCH] [NixOS] Host docs.railbird.ai --- nixos/kubernetes.nix | 29 ++++------------------------- nixos/machines/biskcomp.nix | 10 ++++++++++ 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/nixos/kubernetes.nix b/nixos/kubernetes.nix index d5cd9aee..54aec695 100644 --- a/nixos/kubernetes.nix +++ b/nixos/kubernetes.nix @@ -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"; + }; }; }; } diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index a09933e3..091a3643 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -85,6 +85,16 @@ in ''; }; }; + "docs.railbird.ai" = { + enableACME = true; + forceSSL = true; + root = "/var/lib/syncthing/railbird/docs"; + locations."/" = { + extraConfig = '' + autoindex on; + ''; + }; + }; }; };