pallets-eco / pallets-eco/flask-debugtoolbar
toolbar static files are misconfigured when reverse proxying to subfolder
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 978
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
Toolbar sets /_debug_toolbar URI when I reverse proxy flask through nginx to a subfolder /xxx - instead of /xxx/_debug_toolbar
I hacked it by copying .js and .css files into flask static files directory and modifying templates/base.html - but it is an ugly hack.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with templates/base.html and trace how the toolbar's JavaScript and CSS URLs are assembled. Reproduce the toolbar behind an nginx reverse proxy mounted at /xxx, then verify that its static assets resolve under /xxx/_debug_toolbar without copying files into the Flask application's static directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, nginx, python
- Domain
- backend, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100