pallets-eco / pallets-eco/flask-debugtoolbar

toolbar static files are misconfigured when reverse proxying to subfolder

Open
#117 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.