[PR #1472] [MERGED] feat: configurable STATIC_DIR; fix: mount CACHE_DIR to the /cache endpoint #20680

Closed
opened 2026-04-20 03:07:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: static-dir


📝 Commits (1)

  • 304bf9d feat: configurable STATIC_DIR; fix: mount CACHE_DIR to the /cache endpoint

📊 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

  • Description: Allow to configure STATIC_DIR and mount the same to /static API endpoint. Also mount CACHE_DIR to /cache.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
    No new dependencies

Description

  • Added a new backend ENV STATIC_DIR to configure the location of static files
  • Mount /static API endpoint to STATIC_DIR and /cache to CACHE_DIR

Changelog Entry

Added

  • backend: Add STATIC_DIR ENV to configure the location of the static files (like favicon)

Fixed

  • backend: Mount CACHE_DIR to the /cache API endpoint

Changed

  • [List any changes or updates]

Removed

  • [List any removed features or files]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1472 **Author:** [@shivaraj-bh](https://github.com/shivaraj-bh) **Created:** 4/9/2024 **Status:** ✅ Merged **Merged:** 4/10/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `static-dir` --- ### 📝 Commits (1) - [`304bf9d`](https://github.com/open-webui/open-webui/commit/304bf9d9b13fa1937a5d5bbff710e4237ca2d62b) feat: configurable `STATIC_DIR`; fix: mount `CACHE_DIR` to the `/cache` endpoint ### 📊 Changes **2 files changed** (+25 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `backend/config.py` (+21 -15) 📝 `backend/main.py` (+4 -5) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Allow to configure `STATIC_DIR` and mount the same to `/static` API endpoint. Also mount `CACHE_DIR` to `/cache`. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? No new dependencies --- ## Description - Added a new backend ENV `STATIC_DIR` to configure the location of static files - Mount `/static` API endpoint to `STATIC_DIR` and `/cache` to `CACHE_DIR` --- ### Changelog Entry ### Added - backend: Add `STATIC_DIR` ENV to configure the location of the static files (like favicon) ### Fixed - backend: Mount `CACHE_DIR` to the `/cache` API endpoint ### Changed - [List any changes or updates] ### Removed - [List any removed features or files] --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:07:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20680