mirror of
https://github.com/nsupdate-info/nsupdate.info.git
synced 2026-04-25 16:45:55 +03:00
[GH-ISSUE #436] Problem with installation / configuration #314
Labels
No labels
bug
bug
duplicate
easy
easy
enhancement
enhancement
invalid
needs help
pull-request
scalability
security
task
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nsupdate.info-nsupdate-info#314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SirColin on GitHub (Jul 30, 2019).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/436
I am using the following setup Django 1.11.22 + Gnunicorn 19.9.0 + Ngnix 1.14.0 (Ubuntu)
When I visit https://www.example.com, I get the following error:
Exception Type: KeyError at /Exception Value: 'REMOTE_ADDR'Gunicorn is involved in a socket in Nginx
server unix:/srv/nsupdate/run/gunicorn.sock fail_timeout=0;etc/ngnix/sites-available/nsupdatecontains the following valuesproxy_set_header Host $host; proxy_set_header User-Agent $http_user_agent; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE_ADDR $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;but
REMOTE_ADDRis not displayed in the META request.I hope someone can help me :-)
@ThomasWaldmann commented on GitHub (Aug 1, 2019):
This is what i use on the frontend "httprelay" nginx instance (it does reverse proxy the real servers and also tls):
Behind that, there is another nginx without special configuration and using uwsgi for nsupdate.info.
I don't use gunicorn, so I can't help with that.
In general, maybe you get a wider audience and more feedback when asking that question on a nginx/gunicorn support site/channel.
@ThomasWaldmann commented on GitHub (Dec 27, 2019):
Guess this is resolved.