summaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorChristian Theune <ct@gocept.com>2013-06-13 15:46:30 +0200
committerChristian Theune <ct@gocept.com>2013-06-13 15:46:30 +0200
commitdb3713079be3f55d9bac3b7a18f17a13efaed6ac (patch)
treea5e8ae5dad3d4a05af1891b103c94e661c454130 /webui.py
parente29728820cccedfbb24c7be53356692a8f614743 (diff)
downloaddecorator-db3713079be3f55d9bac3b7a18f17a13efaed6ac.tar.gz
Update comment on how to configure nginx.
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/webui.py b/webui.py
index 9f23f2d..e43be23 100644
--- a/webui.py
+++ b/webui.py
@@ -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()