feat: backoffice 사이트 트래픽 통계(방문·봇 크롤링) 추가
This commit is contained in:
1 parent
3854aef320
commit
01dd8e7522
33 files changed
+2253
-57
No files matched your search
@@ -826,6 +826,21 @@ class P2vSettings(BaseSettings):
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
class TrafficSettings(BaseSettings):
|
||||
"""사이트 트래픽 통계 — nginx 접근 로그 수집 설정"""
|
||||
|
||||
TRAFFIC_ACCESS_LOG_PATH: str = Field(
|
||||
default="",
|
||||
description="nginx JSON 접근 로그 파일 경로(컨테이너 안). 비우면 수집 루프를 띄우지 않는다",
|
||||
)
|
||||
TRAFFIC_INGEST_INTERVAL_SECONDS: int = Field(
|
||||
default=60, description="수집 주기(초). 한 회차가 상한까지 읽었으면 쉬지 않고 이어 읽는다"
|
||||
)
|
||||
TRAFFIC_INGEST_MAX_LINES: int = Field(default=20000, description="한 회차에 읽는 최대 줄 수")
|
||||
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
prj_settings = ProjectSettings()
|
||||
cors_settings = CORSSettings()
|
||||
apikey_settings = APIKeySettings()
|
||||
@@ -845,3 +860,4 @@ internal_settings = InternalSettings()
|
||||
social_upload_settings = SocialUploadSettings()
|
||||
ssulbox_settings = SsulboxSettings()
|
||||
p2v_settings = P2vSettings()
|
||||
traffic_settings = TrafficSettings()
|
||||
Reference in new issue
Block a user