Files
ToNav/config.py
OpenClaw Agent 521cd9ba42 docs: add comprehensive README.md and fix bugs
- add README.md with usage and deployment guide
- fix category sync logic in backend
- fix URL overflow in admin services list
- fix data caching issues in front-end and back-end
- add 'View Front-end' button in admin dashboard
2026-02-13 07:00:49 +08:00

25 lines
571 B
Python

# -*- coding: utf-8 -*-
"""ToNav 配置文件"""
import os
class Config:
"""基础配置"""
# Flask 配置
SECRET_KEY = os.environ.get('TONAV_SECRET_KEY') or 'tonav-secret-key-change-in-production-2026'
# 数据库配置
DATABASE_PATH = os.path.join(os.path.dirname(__file__), 'tonav.db')
# 服务配置
HOST = '127.0.0.1'
PORT = 9519
DEBUG = False
# 健康检查配置
HEALTH_CHECK_INTERVAL = 60 # 检测间隔(秒)
HEALTH_CHECK_TIMEOUT = 15 # 检测超时(秒)
# 分页配置
ITEMS_PER_PAGE = 20