all repos — nixfiles @ 0f3e1dc1286de448a8d292ec5c14f737029e3c75

System and user configuration, managed by nix and home-manager

remove chat role

Alin
commit

0f3e1dc1286de448a8d292ec5c14f737029e3c75

parent

196dde11002c4da41875591a8597e130d17cd463

2 files changed, 0 insertions(+), 43 deletions(-)

changed files
M system/hosts/smrk.nix → system/hosts/smrk.nix
@@ -4,7 +4,6 @@ lib,
pkgs, ... }: -# ../roles/chat.nix let hostname = "smrk"; in
D system/roles/chat.nix
@@ -1,42 +0,0 @@
-{ - config, - ... -}: -let - ts-domain = "fin-marlin.ts.net"; -in -{ - age.secrets.open-webui.file = ../../secrets/open-webui.age; - - services.open-webui = { - enable = true; - environment = { - ANONYMIZED_TELEMETRY = "False"; - DO_NOT_TRACK = "True"; - ENABLE_VERSION_UPDATE_CHECK = "False"; - - ENABLE_API_KEYS = "True"; - WEBUI_URL = "https://chat.${ts-domain}"; - WEBUI_AUTH_TRUSTED_EMAIL_HEADER = "X-Webauth-Email"; - WEBUI_AUTH_TRUSTED_NAME_HEADER = "X-Webauth-User"; - WEBUI_AUTH = "False"; - CORS_ALLOW_ORIGIN = "https://chat.${ts-domain}"; - - OPENAI_API_BASE_URL = "https://openrouter.ai/api/vi"; - }; - }; - - services.caddy.virtualHosts = { - "chat.${ts-domain}" = { - extraConfig = '' - bind tailscale/chat - tailscale_auth - reverse_proxy localhost:${toString config.services.open-webui.port} { - header_up X-Webauth-User {http.auth.user.tailscale_login} - header_up X-Webauth-Email {http.auth.user.tailscale_user} - header_up X-Webauth-Name {http.auth.user.tailscale_name} - } - ''; - }; - }; -}