mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-12-15 12:59:42 +01:00
- Added a static method to ensure ImunifyAV assets are created and permissions set correctly in CageFS.py. - Updated the URL routing in urls.py to include paths for ImunifyAV, supporting both legacy and new routes. - Modified the ImunifyAV HTML template to use Django's URL template tag for better maintainability. - Enhanced the cyberpanel_fixes.sh script to ensure ImunifyAV UI assets are installed during fixes. - Improved database user resolution and password handling in mysqlUtilities.py for better security and reliability. This update enhances the integration and management of ImunifyAV within the CyberPanel environment.
53 lines
2.4 KiB
Python
53 lines
2.4 KiB
Python
"""CyberCP URL Configuration
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/1.11/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import path, include
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from django.urls import path, re_path, include
|
|
from django.contrib import admin
|
|
from firewall import views as firewall_views
|
|
|
|
urlpatterns = [
|
|
path('base/', include('baseTemplate.urls')),
|
|
path('', include('loginSystem.urls')),
|
|
path('imunifyav/', firewall_views.imunifyAV, name='imunifyav_root'),
|
|
path('ImunifyAV/', firewall_views.imunifyAV, name='imunifyav_root_legacy'),
|
|
path('packages/', include('packages.urls')),
|
|
path('websites/', include('websiteFunctions.urls')),
|
|
path('tuning/', include('tuning.urls')),
|
|
path('ftp/', include('ftp.urls')),
|
|
path('serverstatus/', include('serverStatus.urls')),
|
|
path('dns/', include('dns.urls')),
|
|
path('users/', include('userManagment.urls')),
|
|
path('dataBases/', include('databases.urls')),
|
|
path('email/', include('mailServer.urls')),
|
|
path('serverlogs/', include('serverLogs.urls')),
|
|
path('firewall/', include('firewall.urls')),
|
|
path('backup/', include('backup.urls')),
|
|
path('managephp/', include('managePHP.urls')),
|
|
path('manageSSL/', include('manageSSL.urls')),
|
|
path('api/', include('api.urls')),
|
|
path('filemanager/', include('filemanager.urls')),
|
|
path('emailPremium/', include('emailPremium.urls')),
|
|
path('manageservices/', include('manageServices.urls')),
|
|
path('plugins/', include('pluginHolder.urls')),
|
|
path('emailMarketing/', include('emailMarketing.urls')),
|
|
path('cloudAPI/', include('cloudAPI.urls')),
|
|
path('docker/', include('dockerManager.urls')),
|
|
path('container/', include('containerization.urls')),
|
|
path('CloudLinux/', include('CLManager.urls')),
|
|
path('IncrementalBackups/', include('IncBackups.urls')),
|
|
path('aiscanner/', include('aiScanner.urls')),
|
|
# path('Terminal/', include('WebTerminal.urls')),
|
|
]
|