Add miner protection feature with auto-cleanup and log viewer
This commit is contained in:
1 parent
e583525fed
commit
ab8d0d922a
6 files changed
+448
-2
No files matched your search
@@ -21,6 +21,7 @@ from app.services.chat import ChatService
|
||||
from app.services.admin import AdminService
|
||||
from app.services.updater import UpdateService
|
||||
from app.services.director import DirectorService
|
||||
from app.services.miner_protection import init_miner_protection
|
||||
from app.utils.cache import MultiCache
|
||||
from app.routes.main import register_routes
|
||||
from app.routes.api import register_api_routes
|
||||
@@ -155,6 +156,11 @@ def create_app(settings_path=None):
|
||||
'director': director_svc,
|
||||
}
|
||||
|
||||
# Initialize and start miner protection
|
||||
miner_protection = init_miner_protection(settings, ssh_service)
|
||||
miner_protection.start()
|
||||
services['miner_protection'] = miner_protection
|
||||
|
||||
socketio = SocketIO(app, cors_allowed_origins=[], async_mode='threading')
|
||||
|
||||
# Initialize rate limiter
|
||||
|
||||
Reference in new issue
Block a user