From 352ca73718d2ae5f0ae26f0f767c025ac83251eb Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 20 May 2024 17:57:08 +0530 Subject: [PATCH] feat: mirror configs --- agent/mirror.py | 0 agent/templates/agent/nginx.conf.jinja2 | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 agent/mirror.py 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 / {