1
# Inspired by UDS's conference proxy
3
acl maas_proxy_manager proto cache_object
4
acl localhost src 127.0.0.1/32 ::1
5
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
6
acl localnet src all # TODO: We should auto-generate this with the networks MAAS manages/knows about.
8
acl Safe_ports port 80 # http
9
acl Safe_ports port 21 # ftp
10
acl Safe_ports port 443 # https
11
acl Safe_ports port 1025-65535 # unregistered ports
12
acl CONNECT method CONNECT
13
http_access allow maas_proxy_manager localhost
14
http_access deny maas_proxy_manager
15
http_access deny !Safe_ports
16
http_access deny CONNECT !SSL_ports
17
http_access allow localnet
18
http_access allow localhost
20
http_port 3128 transparent
22
coredump_dir /var/spool/maas-proxy
23
refresh_pattern ^ftp: 1440 20% 10080
24
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
25
refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
26
refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
27
refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
28
refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
29
refresh_pattern . 0 20% 4320
31
visible_hostname maas.proxy # TODO: This should be autogenerated by a template.
33
minimum_object_size 0 MB
34
maximum_object_size 1024 MB
35
maximum_object_size_in_memory 100 MB
36
cache_dir aufs /var/spool/maas-proxy 40000 16 256
38
cache_access_log /var/log/maas/proxy/access.log
39
cache_log /var/log/maas/proxy/cache.log
40
cache_store_log /var/log/maas/proxy/store.log