Deploy drhider / validate (push) Canceled after 0s
- Update upload/ module to v0.2.2 with modular Layer 1 (FilePicker) and Layer 2 (Streaming transit upload) - Replace legacy manual file table in site/templates/index.html with FilePicker.initFilePicker - Wire uploadViaVM with per-file status updates and abort signal support - Add dist bundles to dist/ and site/static/dist/ with routes in site/routes/main_bp.py - Add test_hardening.py and test_safe_name.py from upload-platform - Bump version to 0.0.78 in site/app.py - Document integration plan and report in History/upload-integration/
12 lines
620 B
Python
12 lines
620 B
Python
"""Параметры слоя 2 (бэк) по умолчанию.
|
|
|
|
Переопределяются из конфига приложения через create_upload_refs_blueprint(cfg).
|
|
"""
|
|
|
|
# Ретраи pull из ВМ-буфера: защита от разовых DNS/сетевых сбоев (gaierror -5 и т.п.)
|
|
PULL_RETRIES = 3
|
|
PULL_RETRY_DELAY = 2 # секунды между попытками
|
|
|
|
# Доверенный префикс ВМ-буфера по умолчанию — валидация URL при pull (защита от SSRF)
|
|
VM_UPLOAD_PREFIX = "https://contracts.kube5s.ru/drhider-upload/"
|