/usr/lib/python3/dist-packages/provisioningserver/templates/proxy/maas-proxy.conf.template is in python3-maas-provisioningserver 2.4.0~beta2-6865-gec43e47e6-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | # DO NOT EDIT. This file is automatically created by MAAS.
# Last updated at {{modified}}.
# Inspired by UDS's conference proxy
acl maas_proxy_manager proto cache_object
# Make sure that localnet has at least one entry in it, to avoid errors.
acl localnet src 127.0.0.0/8
{{for cidr in cidrs}}
acl localnet src {{cidr}}
{{endfor}}
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
http_access allow maas_proxy_manager localhost
http_access deny maas_proxy_manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128 transparent
http_port 8000
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
refresh_pattern . 0 20% 4320
forwarded_for delete
visible_hostname {{fqdn}}
cache_mem 512 MB
minimum_object_size 0 MB
maximum_object_size 1024 MB
maximum_object_size_in_memory 100 MB
{{if running_in_snap}}
pid_filename {{snap_data_path}}/proxy/squid.pid
mime_table {{snap_path}}/usr/share/squid/mime.conf
pinger_program {{snap_path}}/usr/lib/squid/pinger
unlinkd_program {{snap_path}}/usr/lib/squid/unlinkd
logfile_daemon {{snap_path}}/usr/lib/squid/log_file_daemon
icon_directory {{snap_path}}/usr/share/squid/icons
error_directory {{snap_path}}/usr/share/squid-langpack/en
coredump_dir {{snap_common_path}}/proxy/spool
cache_dir aufs {{snap_common_path}}/proxy/cache 40000 16 256
cache_access_log {{snap_common_path}}/log/proxy/access.log
cache_log {{snap_common_path}}/log/proxy/cache.log
cache_store_log {{snap_common_path}}/log/proxy/store.log
{{else}}
coredump_dir /var/spool/maas-proxy
cache_dir aufs /var/spool/maas-proxy 40000 16 256
cache_access_log /var/log/maas/proxy/access.log
cache_log /var/log/maas/proxy/cache.log
cache_store_log /var/log/maas/proxy/store.log
{{endif}}
{{if upstream_peer_proxy}}
cache_peer {{upstream_proxy_address}} parent {{upstream_proxy_port}} 0 no-query default
never_direct allow all
{{endif}}
{{if dns_v4_first}}
dns_v4_first on
{{endif}}
|