From 095bbb145ec041f843e3a546e0cc2f9cf4548097 Mon Sep 17 00:00:00 2001 From: Repinoid Date: Wed, 21 Oct 2026 18:26:51 +0300 Subject: [PATCH] Use dedicated Obfuscator VM upload buffer --- site/app.py | 2 +- site/routes/__init__.py | 2 +- site/templates/index.html | 2 +- upload/backend/upload_refs/config.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/app.py b/site/app.py index 4b55595..8026e45 100644 --- a/site/app.py +++ b/site/app.py @@ -21,7 +21,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "1.0.0" +VERSION = "1.0.1" def setup_logging(): diff --git a/site/routes/__init__.py b/site/routes/__init__.py index 2ae6f41..544b001 100644 --- a/site/routes/__init__.py +++ b/site/routes/__init__.py @@ -16,7 +16,7 @@ def register_routes(app): # Слой 2 (закачка через ВМ) — переиспользуемый blueprint из модуля upload app.register_blueprint(create_upload_refs_blueprint({ "apiPrefix": "/api", - "vmUploadPrefix": "https://upload.sinefo.ru/drhider-upload/", + "vmUploadPrefix": "https://obfuscator-upload.sinefo.ru/obfuscator-upload/", "maxFileBytes": 50 * 1024 * 1024, "maxSessionBytes": 500 * 1024 * 1024, "ttlSeconds": 30 * 60, diff --git a/site/templates/index.html b/site/templates/index.html index 5d14692..d9dd7d9 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -516,7 +516,7 @@ const db = document.getElementById('dlBtns'); const MAX_FILE_BYTES = 50 * 1024 * 1024; // 50 МБ на один файл 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'; let currentSid = ''; diff --git a/upload/backend/upload_refs/config.py b/upload/backend/upload_refs/config.py index ff77692..ae200c3 100644 --- a/upload/backend/upload_refs/config.py +++ b/upload/backend/upload_refs/config.py @@ -8,4 +8,4 @@ PULL_RETRIES = 3 PULL_RETRY_DELAY = 2 # секунды между попытками # Доверенный префикс ВМ-буфера по умолчанию — валидация URL при pull (защита от SSRF) -VM_UPLOAD_PREFIX = "https://upload.sinefo.ru/drhider-upload/" +VM_UPLOAD_PREFIX = "https://obfuscator-upload.sinefo.ru/obfuscator-upload/"