Skip to content
Snippets Groups Projects
Commit d644fafd authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Replacement of apt-cacher-ng (refs #20417).

parent 9645ecb1
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ server {
}
# APT proxy
location /apt {
location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|ftp.debian.org/debian|mozilla.debian.net|panel.ubicast.eu)/(.*)$ {
location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|ftp.debian.org/debian|panel.ubicast.eu)/(.*)$ {
resolver 127.0.0.1;
proxy_pass $1://$2/$3;
proxy_cache uc-apt-cache;
......@@ -70,3 +70,13 @@ server {
}
}
}
server {
# Replacement of apt-cacher-ng
listen 3142;
location / {
resolver 127.0.0.1;
proxy_pass http://{{ server_name }}/apt/$scheme/$host$request_uri;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment