Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #455
Allows configuration of mapped URLs to file system folders. These are served from the
/custom
url prefix. For example, in config.yml:With the above configuration, a request for
/custom/foo/bar.png
would returnD:\bar\bar.png
. The/
entry matches anything that is not otherwise mapped by the other entries. For example,/custom/baz/xyz.png
would returnD:\stash\static\baz\xyz.png
.This configuration is not exposed in the UI to minimise possible malicious use.
Applications for this include using static images in custom css, like the Plex theme. For example, I used the following config:
I placed
background.png
andnoise.png
in thecustom
folder, then in the custom css I put:Other applications might be to drop UI extensions into this folder, allowing people to extend the UI further. I tried putting the
ui/v2.5/build
directory into my configuration, but it's built to use specific URL paths, so didn't quite work correctly.