Browse Source

Support devpi as the upstream pip server

devpi serves packages from url starting +f/. The devpi source code
suggets that +e may also be used but is not seen when using devpi
as a caching proxy.

Change-Id: Ib391d17e5038a355a558aa3f041ed58ede7dad4a
Jonathan Rosser 11 months ago
parent
commit
bcb29bd5c5
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      templates/openstack-slushee.vhost.j2

+ 8
- 0
templates/openstack-slushee.vhost.j2 View File

@@ -44,6 +44,14 @@ server {
44 44
         error_page 404 = @pypi;
45 45
     }
46 46
 
47
+    location /+f {
48
+        {% if repo_nginx_pypi_upstream | match('.*:443$') %}
49
+        proxy_pass https://pypi;
50
+        {% else %}
51
+        proxy_pass http://pypi;
52
+        {% endif %}
53
+    }
54
+
47 55
     location / {
48 56
         root {{ repo_service_home_folder }}/repo/;
49 57
         autoindex on;

Loading…
Cancel
Save