Use dedicated Obfuscator VM upload buffer

This commit is contained in:
Repinoid
2026-10-21 18:26:51 +03:00
parent 4fb6c992b7
commit 095bbb145e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 = "1.0.0" VERSION = "1.0.1"
def setup_logging(): def setup_logging():
+1 -1
View File
@@ -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://upload.sinefo.ru/drhider-upload/", "vmUploadPrefix": "https://obfuscator-upload.sinefo.ru/obfuscator-upload/",
"maxFileBytes": 50 * 1024 * 1024, "maxFileBytes": 50 * 1024 * 1024,
"maxSessionBytes": 500 * 1024 * 1024, "maxSessionBytes": 500 * 1024 * 1024,
"ttlSeconds": 30 * 60, "ttlSeconds": 30 * 60,
+1 -1
View File
@@ -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://upload.sinefo.ru/drhider-upload/'; // ВМ-буфер const VM_UPLOAD_URL = 'https://obfuscator-upload.sinefo.ru/obfuscator-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 = '';
+1 -1
View File
@@ -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://upload.sinefo.ru/drhider-upload/" VM_UPLOAD_PREFIX = "https://obfuscator-upload.sinefo.ru/obfuscator-upload/"