Comments (2)
This is a common problem any time you are running behind a proxy.
Fortunately there's middleware out there (such as the paste
prefixmiddleware) that will convert the HTTP_X_FORWARDED_FOR
header into
the remote_addr
for you.
http://pythonpaste.org/deploy/modules/config.html#paste.deploy.config.PrefixMiddleware
from pyramid_debugtoolbar.
Yes, converting the header earlier is definitely one option. Maybe it's better since it requires more explicit configuration — and if you're using PrefixMiddleware anyway, then it is silly if debugtoolbar also has logic for this.
from pyramid_debugtoolbar.
Related Issues (20)
- Redis panel HOT 1
- Memcached panel
- ElasticSearch panel
- HTML Validator panel
- set request.exception and request.exc_info when rendering intercepted exceptions
- Rendering fails while there is an active request HOT 4
- Sqa panel code break for multiple threads HOT 4
- regex warning generated for > CPython 3.6: Flags not at the start of the expression HOT 3
- HeaderDebugPanel sometimes triggers an exception for no response. HOT 2
- proposal: differentiating repeat requests
- nginx proxy with gunicorn HOT 4
- proprosal: safe panel invocations HOT 1
- docs improvement: panels vs extra_panels HOT 2
- proposal: panel reordering HOT 4
- Debugtoolbar-Injected Code not compatible for XML HOT 2
- Support running as unix socket
- path at the left shows always `/_debug_toolbar/sse` when running with uwsgi HOT 3
- Exception raised with SQLAlchemy transaction
- currentThread deprecation HOT 4
- Error when running with pyramid-2.0 and pyramid_mako-1.0.2. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_debugtoolbar.