Set default storage provider to local

This commit is contained in:
Rodrigo Agundez 2025-01-16 08:01:26 +08:00
parent a3f737c0c6
commit 0129255478

View File

@ -9,22 +9,22 @@ from urllib.parse import urlparse
import chromadb import chromadb
import requests import requests
import yaml from pydantic import BaseModel
from open_webui.internal.db import Base, get_db from sqlalchemy import JSON, Column, DateTime, Integer, func
from open_webui.env import ( from open_webui.env import (
OPEN_WEBUI_DIR,
DATA_DIR, DATA_DIR,
DATABASE_URL,
ENV, ENV,
FRONTEND_BUILD_DIR, FRONTEND_BUILD_DIR,
OFFLINE_MODE,
OPEN_WEBUI_DIR,
WEBUI_AUTH, WEBUI_AUTH,
WEBUI_FAVICON_URL, WEBUI_FAVICON_URL,
WEBUI_NAME, WEBUI_NAME,
log, log,
DATABASE_URL,
OFFLINE_MODE,
) )
from pydantic import BaseModel from open_webui.internal.db import Base, get_db
from sqlalchemy import JSON, Column, DateTime, Integer, func
class EndpointFilter(logging.Filter): class EndpointFilter(logging.Filter):
@ -581,7 +581,7 @@ if CUSTOM_NAME:
# STORAGE PROVIDER # STORAGE PROVIDER
#################################### ####################################
STORAGE_PROVIDER = os.environ.get("STORAGE_PROVIDER", "") # defaults to local, s3 STORAGE_PROVIDER = os.environ.get("STORAGE_PROVIDER", "local") # defaults to local, s3
S3_ACCESS_KEY_ID = os.environ.get("S3_ACCESS_KEY_ID", None) S3_ACCESS_KEY_ID = os.environ.get("S3_ACCESS_KEY_ID", None)
S3_SECRET_ACCESS_KEY = os.environ.get("S3_SECRET_ACCESS_KEY", None) S3_SECRET_ACCESS_KEY = os.environ.get("S3_SECRET_ACCESS_KEY", None)