Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/cl_website_collector/constants.py |
# -*- coding: utf-8 -*-
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2024 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
from pathlib import Path
# Collector version
VERSION = "1.0.0"
# Storage dir
STORAGE_DIR = Path("/var/lve/website_collector")
# Opt-out control
OPT_OUT_FILE = STORAGE_DIR / ".disabled"
# Processing limits
DOCROOT_SCAN_TIMEOUT = 30 # Timeout per docroot scan in seconds
DOCROOT_LIMIT_PER_RUN = 500 # Maximum number of docroots to process in single run
SENDING_TIMEOUT = 7200 # Total timeout 2 hours
MAX_RECORD_SIZE = 1024 * 1024 * 9 # 9MB
FILE_SIZE_LIMIT = 1024 * 1024 * 8 # 8MB