--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/1TFVz0_pW74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/3d195d70-c181-459f-81aa-521a78d026f3n%40googlegroups.com.
I have a tornado server behind nginx reverse proxy. In the nginx.conf http section I have global proxy settings:proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {...}Tornado configuration:app = tornado.web.Application(...)server = tornado.httpserver.HTTPServer(app, xheaders=True)But Tornado logger still sees all requests come from 127.0.0.1How should I setup nginx to pass the actual IP to tornado?
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/c2492303-2097-4dc2-922b-b115529f301cn%40googlegroups.com.