Skip to content
This repository has been archived by the owner on Aug 4, 2018. It is now read-only.

Commit

Permalink
respect X-Forwarded-For header for PyPI, trust everyone for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Nov 28, 2013
1 parent a932bad commit 2695dad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ error_log /var/log/nginx/{{ config['name'] }}/error.log;

add_header Strict-Transport-Security "max-age=31536000";

set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;

rewrite ^/$ {{ config['url'] }}/pypi redirect;

location ~* ^/(pypi|daytime|mirrors|id|oauth|security).* {
Expand Down

0 comments on commit 2695dad

Please sign in to comment.