Apt-Cacher NG¶
Apt-Cacher NG is used as a cache system for the debian based apt management system.
Installation¶
Default Interface: 3142/acng-report.html
Configuration path: /etc/apt-cacher-ng
Config¶
Warning
For some reason, apt-cacher-ng doesn't work when the acng.conf file is symlinked to the repo directly
and so the config file needs to be manually synced.
/mnt/storage/aptcache
Client¶
/etc/apt/apt.conf.d/00aptproxy
Testing¶
To test the Apt-Cacher NG setup, perform the following steps:
-
From a remote host, use the following command to download a package through the cache:
-
On the ACNG host, watch the logs to confirm that the package download was cached:
Traefik¶
homelab/pve/traefik/conf.d/aptcache.yaml
---
http:
#region routers
routers:
aptcache:
entryPoints:
- "websecure"
rule: "Host(`aptcache.l.nicholaswilde.io`)"
middlewares:
- default-headers@file
- https-redirectscheme@file
tls: {}
service: aptcache
#endregion
#region services
services:
aptcache:
loadBalancer:
servers:
- url: "http://192.168.2.40:3142"
passHostHeader: true
#endregion
Task List¶
References¶
- https://community-scripts.github.io/ProxmoxVE/scripts?id=apt-cacher-ng
- https://pimox-scripts.com/scripts?id=Apt-Cacher-NG