diff --git a/imageroot/bin/expand-configuration b/imageroot/bin/expand-configuration index 59ef8b4..928d3ec 100755 --- a/imageroot/bin/expand-configuration +++ b/imageroot/bin/expand-configuration @@ -37,6 +37,7 @@ if os.environ.get("MAIL_SERVER", ''): properties = { "host": os.environ["TRAEFIK_HOST"], "provider_ip": os.environ["PROVIDER_IP"], + "retention_days": os.environ.get("RETENTION_DAYS", 2557), } json_properties = json.dumps(properties) diff --git a/imageroot/templates/piler.conf b/imageroot/templates/piler.conf index 84e4c29..37f0618 100644 --- a/imageroot/templates/piler.conf +++ b/imageroot/templates/piler.conf @@ -4,7 +4,7 @@ backlog=20 check_for_client_timeout_interval=20 cipher_list=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS clamd_socket=/tmp/clamd -default_retention_days=2557 +default_retention_days={{retention_days}} enable_chunking=0 enable_cjk=0 enable_folders=0