mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[PR #965] implement static_url to direct link to ressources if reachable via different URL #1103
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#1103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/prasathmani/tinyfilemanager/pull/965
Author: @gebi
Created: 2/16/2023
Status: 🔄 Open
Base:
master← Head:t/feature_static_url📝 Commits (1)
a8aae96implement static_url to direct link to ressources if reachable via different url📊 Changes
1 file changed (+12 additions, -2 deletions)
View changed files
📝
tinyfilemanager.php(+12 -2)📄 Description
Hi,
thx for your nice "tiny" filemanager :)!
i had the usecase, that all files worked on by FM in the backend (like
https://backend-www.example.org/staticwww/index.php) are actually reachable for the main site (likehttps://www.example.org) without auth.I've thus implemented a config option
static_urlthat is used (only for direct linking) to ressources and is supported to point to a completely different server.Main purpose being, that direct links are now useable without FM and can be used by the users directly!
In case static_url is not set it should be a no-op and uses FM_ROOT_URL down the line, just like without this patch.
example config:
yields the following urls:
https://www.example.org/foo/test.pngwith
static_urlcommented out it yields:https://backend-www.example.org/foo/test.png🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.