diff options
author | Christian Theune <ct@gocept.com> | 2013-06-13 15:46:30 +0200 |
---|---|---|
committer | Christian Theune <ct@gocept.com> | 2013-06-13 15:46:30 +0200 |
commit | db3713079be3f55d9bac3b7a18f17a13efaed6ac (patch) | |
tree | a5e8ae5dad3d4a05af1891b103c94e661c454130 /webui.py | |
parent | e29728820cccedfbb24c7be53356692a8f614743 (diff) | |
download | decorator-db3713079be3f55d9bac3b7a18f17a13efaed6ac.tar.gz |
Update comment on how to configure nginx.
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -832,12 +832,14 @@ class WebUI: # '/packages_raw/...' that aliases the original path correctly, see # http://wiki.nginx.org/X-accel and http://wiki.nginx.org/XSendfile for # details. - # Sample: (note the missing slash on the alias and the internal) + # Sample: (note the missing slash on the alias!) # location /packages_raw { - # internal; - # alias /data/files; - # autoindex on; + # alias /path/to/packages/dir; + # add_header X-PYPI-LAST-SERIAL $upstream_http_x_pypi_last_serial; + # internal; + # autoindex on; # } + # I tested this using regular http upstreams, so no guarantee this works with uwsgi. self.handler.send_header("X-Accel-Redirect", "/packages_raw" + path) self.handler.end_headers() |