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;