优化flower启动代码

This commit is contained in:
mark.tian
2025-12-09 19:09:29 +08:00
parent 0af7eebed8
commit 38787b1e4e
7 changed files with 224 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ FLOWER_CONFIG = {
'result_backend': 'redis://localhost:6379/0',
'port': 5555,
'address': '0.0.0.0', # 允许外部访问
'basic_auth': None, # 基础认证,格式: 'username:password'
'basic_auth': 'admin:admin123', # 基础认证,格式: 'username:password'
'oauth_redirect_url': None,
'db': None, # 使用SQLite存储监控数据
'inspect_timeout': 1000,