We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My test code:
from fastapi import FastAPI import uvicorn from staticfiles import StaticFiles app = FastAPI() app.mount("/music", StaticFiles(directory="/home/hanxi/work/xiaomusic/music", follow_symlink=True), name="music") uvicorn.run( app, host=["::", "0.0.0.0"], port=3333, )
The directory /home/hanxi/work/xiaomusic/music is a symlink.
> ls -l /home/hanxi/work/xiaomusic/music lrwxrwxrwx 1 hanxi hanxi 26 Apr 30 12:10 /home/hanxi/work/xiaomusic/music -> /home/hanxi/nas/data/music
I fix this in hanxi@831cb5d
Need pr?
Important
The text was updated successfully, but these errors were encountered:
I guess this makes sense. We did have a security advisory about symlinks, so I'm a bit cautious.
Would you like to create a PR? Also, check the advisory GHSA-v5gw-mw7f-84px and see if we will not introduce something similar. 🙏
Thanks!
Sorry, something went wrong.
I test GHSA-v5gw-mw7f-84px case. test result is 404 Not Found. Review PR #2711 please. Thanks!
aminalaee
Successfully merging a pull request may close this issue.
My test code:
The directory /home/hanxi/work/xiaomusic/music is a symlink.
I fix this in hanxi@831cb5d
Need pr?
Important
The text was updated successfully, but these errors were encountered: