about summary refs log tree commit diff
path: root/src/config.py
blob: cf9fdc5171d529d1314c5da7fe4c2f41e46e8c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# generic
BUFFER_LENGTH = 65536           # 64 KiB
BUFFER_MAX_SIZE = 2**30 * 0.5   # 512 MiB
CLIENT_MAX_AMOUNT = 512         # max requests at once, after which the connections are dropped
CLIENT_MAX_PROCESS = 32         # max processing threads at once

# API
API_FILE_RANDOM_MIN_SIZE_LIMIT = 1              # 1 byte
API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 5      # 5 GiB
API_VERSIONS = {
    "APIv1": {"supported": True}
}