mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #1472] [MERGED] feat: configurable STATIC_DIR; fix: mount CACHE_DIR to the /cache endpoint
#20680
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1472
Author: @shivaraj-bh
Created: 4/9/2024
Status: ✅ Merged
Merged: 4/10/2024
Merged by: @tjbck
Base:
dev← Head:static-dir📝 Commits (1)
304bf9dfeat: configurableSTATIC_DIR; fix: mountCACHE_DIRto the/cacheendpoint📊 Changes
2 files changed (+25 additions, -20 deletions)
View changed files
📝
backend/config.py(+21 -15)📝
backend/main.py(+4 -5)📄 Description
Pull Request Checklist
STATIC_DIRand mount the same to/staticAPI endpoint. Also mountCACHE_DIRto/cache.No new dependencies
Description
STATIC_DIRto configure the location of static files/staticAPI endpoint toSTATIC_DIRand/cachetoCACHE_DIRChangelog Entry
Added
STATIC_DIRENV to configure the location of the static files (like favicon)Fixed
CACHE_DIRto the/cacheAPI endpointChanged
Removed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.