fix: prevent to ingest local files (by default) (#2010)

* feat: prevent to local ingestion (by default) and add white-list

* docs: add local ingestion warning

* docs: add missing comment

* fix: update exception error

* fix: black
This commit is contained in:
Javier Martinez 2024-07-31 14:33:46 +02:00 committed by GitHub
parent 1020cd5328
commit e54a8fe043
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 133 additions and 3 deletions

View file

@ -17,6 +17,9 @@ server:
secret: "Basic c2VjcmV0OmtleQ=="
data:
local_ingestion:
enabled: ${LOCAL_INGESTION_ENABLED:false}
allow_ingest_from: ["*"]
local_data_folder: local_data/private_gpt
ui: