Frontend -> vite

This commit is contained in:
Domingo Dirutigliano
2023-06-29 13:44:12 +02:00
parent 3f2a1db324
commit 1b414139a0
5 changed files with 17 additions and 22 deletions

View File

@@ -10,6 +10,7 @@ from utils.sqlite import SQLite
from utils import API_VERSION, FIREGEX_PORT, JWT_ALGORITHM, get_interfaces, refresh_frontend, DEBUG, SysctlManager
from utils.loader import frontend_deploy, load_routers
from utils.models import ChangePasswordModel, IpInterface, PasswordChangeForm, PasswordForm, ResetRequest, StatusModel, StatusMessageModel
from fastapi.middleware.cors import CORSMiddleware
# DB init
db = SQLite('db/firegex.db')
@@ -155,6 +156,6 @@ if __name__ == '__main__':
port=FIREGEX_PORT,
reload=DEBUG,
access_log=True,
workers=1 # Multiple workers will cause a crash due to the creation
workers=1, # Multiple workers will cause a crash due to the creation
# of multiple processes with separated memory
)