- Fix static files not loading due to volume mount conflict - Remove problematic volume mount from docker-compose.yml - Add __init__.py files to make Python packages - Fix all import statements to use relative imports - Update start.sh to use correct module name - Update config.py with correct default paths and values - Ensure all environment variables are properly loaded from .env file
24 lines
657 B
Python
24 lines
657 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
LogBoard+ - Настройки API
|
|
Автор: Сергей Антропов
|
|
Сайт: https://devops.org.ru
|
|
"""
|
|
|
|
from fastapi import APIRouter, Depends
|
|
|
|
from core.auth import get_current_user
|
|
from core.config import AJAX_UPDATE_INTERVAL, DEFAULT_TAIL, SKIP_UNHEALTHY
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/settings")
|
|
async def get_settings(current_user: str = Depends(get_current_user)):
|
|
"""Получить настройки приложения"""
|
|
return {
|
|
"ajax_update_interval": AJAX_UPDATE_INTERVAL,
|
|
"default_tail": DEFAULT_TAIL,
|
|
"skip_unhealthy": SKIP_UNHEALTHY
|
|
}
|