From 23a7f9cef3fb6a3370da54cb1e3111cfc43ddea0 Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Tue, 20 Jan 2026 00:00:03 +0000 Subject: [PATCH] hosts/library: fix open-webui websockets --- hosts/library/ai.nix | 1 + hosts/vps1/nginx.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/hosts/library/ai.nix b/hosts/library/ai.nix index 6936134..0bcc5ef 100644 --- a/hosts/library/ai.nix +++ b/hosts/library/ai.nix @@ -32,6 +32,7 @@ in OFFLINE_MODE = "True"; OPENID_PROVIDER_URL = "https://auth.vimium.com/oauth2/openid/${clientId}/.well-known/openid-configuration"; OPENID_REDIRECT_URI = "${publicUrl}/oauth/oidc/callback"; + CORS_ALLOW_ORIGIN = "*"; # Fix from https://github.com/NixOS/nixpkgs/pull/431395 STATIC_DIR = "${stateDir}/static"; diff --git a/hosts/vps1/nginx.nix b/hosts/vps1/nginx.nix index d10dafd..0aaf0d4 100644 --- a/hosts/vps1/nginx.nix +++ b/hosts/vps1/nginx.nix @@ -121,6 +121,7 @@ in # Disable proxy buffering for better streaming response from models proxy_buffering off; + proxy_cache off; # Increase max request size for large attachments and long audio messages client_max_body_size 20M;