Move VM upload buffer to sinefo domain
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ if _sys_path_root not in sys.path:
|
|||||||
sys.path.insert(0, _sys_path_root)
|
sys.path.insert(0, _sys_path_root)
|
||||||
|
|
||||||
# Версия приложения (меняется при изменениях)
|
# Версия приложения (меняется при изменениях)
|
||||||
VERSION = "0.0.78"
|
VERSION = "0.0.79"
|
||||||
|
|
||||||
|
|
||||||
def setup_logging():
|
def setup_logging():
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ def register_routes(app):
|
|||||||
# Слой 2 (закачка через ВМ) — переиспользуемый blueprint из модуля upload
|
# Слой 2 (закачка через ВМ) — переиспользуемый blueprint из модуля upload
|
||||||
app.register_blueprint(create_upload_refs_blueprint({
|
app.register_blueprint(create_upload_refs_blueprint({
|
||||||
"apiPrefix": "/api",
|
"apiPrefix": "/api",
|
||||||
"vmUploadPrefix": "https://contracts.kube5s.ru/drhider-upload/",
|
"vmUploadPrefix": "https://upload.sinefo.ru/drhider-upload/",
|
||||||
"maxFileBytes": 50 * 1024 * 1024,
|
"maxFileBytes": 50 * 1024 * 1024,
|
||||||
"maxSessionBytes": 500 * 1024 * 1024,
|
"maxSessionBytes": 500 * 1024 * 1024,
|
||||||
"ttlSeconds": 30 * 60,
|
"ttlSeconds": 30 * 60,
|
||||||
|
|||||||
@@ -516,7 +516,7 @@
|
|||||||
const db = document.getElementById('dlBtns');
|
const db = document.getElementById('dlBtns');
|
||||||
const MAX_FILE_BYTES = 50 * 1024 * 1024; // 50 МБ на один файл
|
const MAX_FILE_BYTES = 50 * 1024 * 1024; // 50 МБ на один файл
|
||||||
const MAX_SESSION_BYTES = 500 * 1024 * 1024; // 500 МБ суммарно на сессию
|
const MAX_SESSION_BYTES = 500 * 1024 * 1024; // 500 МБ суммарно на сессию
|
||||||
const VM_UPLOAD_URL = 'https://contracts.kube5s.ru/drhider-upload/'; // ВМ-буфер
|
const VM_UPLOAD_URL = 'https://upload.sinefo.ru/drhider-upload/'; // ВМ-буфер
|
||||||
const TEST_UPLOAD_ONLY = new URLSearchParams(location.search).get('upload-only') === '1';
|
const TEST_UPLOAD_ONLY = new URLSearchParams(location.search).get('upload-only') === '1';
|
||||||
|
|
||||||
let currentSid = '';
|
let currentSid = '';
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ from upload.backend.session import (
|
|||||||
)
|
)
|
||||||
from upload.backend.upload_refs import safe_name, create_upload_refs_blueprint
|
from upload.backend.upload_refs import safe_name, create_upload_refs_blueprint
|
||||||
|
|
||||||
VM_PREFIX = "https://contracts.kube5s.ru/drhider-upload/"
|
VM_PREFIX = "https://upload.sinefo.ru/drhider-upload/"
|
||||||
|
|
||||||
|
|
||||||
# ═══════════════════════════════════════════════════════════════════════════
|
# ═══════════════════════════════════════════════════════════════════════════
|
||||||
|
|||||||
+1
-1
Submodule upload-platform updated: 1750a8497f...93900b9c96
@@ -8,4 +8,4 @@ PULL_RETRIES = 3
|
|||||||
PULL_RETRY_DELAY = 2 # секунды между попытками
|
PULL_RETRY_DELAY = 2 # секунды между попытками
|
||||||
|
|
||||||
# Доверенный префикс ВМ-буфера по умолчанию — валидация URL при pull (защита от SSRF)
|
# Доверенный префикс ВМ-буфера по умолчанию — валидация URL при pull (защита от SSRF)
|
||||||
VM_UPLOAD_PREFIX = "https://contracts.kube5s.ru/drhider-upload/"
|
VM_UPLOAD_PREFIX = "https://upload.sinefo.ru/drhider-upload/"
|
||||||
|
|||||||
Reference in New Issue
Block a user