Merge pull request #161 from ITler/ITler-patch-2

Added receipe for reverse proxy configuration
This commit is contained in:
Matthew Planchard 2017-02-13 21:07:44 -06:00 committed by GitHub
commit ff06fbf5d5
1 changed files with 23 additions and 0 deletions

View File

@ -648,6 +648,29 @@ unstable packages on different paths::
gunicorn_paster paste.ini
Behind a reverse proxy
----------------------
You can run *pypiserver* behind a reverse proxy aswell.
Nginx
~~~~~
Extend your nginx configuration::
upstream pypi {
server pypiserver.example.com:12345 fail_timeout=0;
}
server {
server_name myproxy.example.com;
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://pypi;
}
}
Utilizing the API
-----------------
In order to enable ad-hoc authentication-providers or to use WSGI-servers