All checks were successful
Build and deploy / Validate source (push) Successful in 1m30s
Build and deploy / Integration suite on a real stack (push) Successful in 4m2s
Build and deploy / Secret scan and release gate (push) Successful in 14s
Build and deploy / Publish images (push) Successful in 1m48s
- the home example priced as the ready sheet it shows (nota 92, R$ 14,90) - opening hours 7h to 18h, and art sent at any time - uploads up to 1 GB, every file scanned - a Designer profile: artwork and corrections on every order, moving only among Arte recebida, Arte conferida and Correção - Números by date range, per machine, and orders apart from passages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
465 B
Python
14 lines
465 B
Python
"""Limits shared by upload admission and the malware scanner."""
|
|
import os
|
|
|
|
CLAMAV_STREAM_MAX_BYTES = 2000 * 1024 * 1024 # infra/clamd.conf StreamMaxLength
|
|
|
|
|
|
def scan_limit_bytes():
|
|
"""The largest file ClamAV scans; above it the format check releases it."""
|
|
return min(CLAMAV_STREAM_MAX_BYTES, int(os.environ.get('SCAN_MAX_BYTES', str(CLAMAV_STREAM_MAX_BYTES))))
|
|
|
|
|
|
def upload_limit_bytes():
|
|
return int(os.environ.get('MAX_UPLOAD_BYTES', '1073741824'))
|