diff --git a/agent/mirror.py b/agent/mirror.py new file mode 100644 index 00000000..e69de29b diff --git a/agent/templates/agent/nginx.conf.jinja2 b/agent/templates/agent/nginx.conf.jinja2 index b5453803..372a59db 100644 --- a/agent/templates/agent/nginx.conf.jinja2 +++ b/agent/templates/agent/nginx.conf.jinja2 @@ -279,6 +279,12 @@ server { proxy_pass http://127.0.0.1:9000/; } + {% elif mirror_server %} + location /ubuntu { + autoindex on; + root /home/frappe/ubuntu/mirror/archive.ubuntu.com; + } + {% else %} location / {