new radius server

This commit is contained in:
2025-04-01 17:43:52 -04:00
parent 9d4b21b5ae
commit 1482643261
13 changed files with 174 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ from views.group_views import group
from config import app_config as config_class
from database import init_app
import logging, os
import logging, os, pytz
from logging.handlers import RotatingFileHandler
# Instantiate config class
@@ -13,8 +13,11 @@ app_config = config_class()
app = Flask(__name__)
app.config.from_object(app_config)
app.config['TZ'] = pytz.timezone(app.config['APP_TIMEZONE'])
init_app(app)
app.config['TZ'] = pytz.timezone(app.config['APP_TIMEZONE'])
# Logging
if app.config.get('LOG_TO_FILE'):
log_file = app.config.get('LOG_FILE_PATH', '/app/logs/app.log')