mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
refactor: extract db configs and celery configs into dify config (#5491)
This commit is contained in:
@@ -60,3 +60,14 @@ def test_flask_configs(example_env_file):
|
||||
assert config['CONSOLE_API_URL'] == 'https://example.com'
|
||||
# fallback to alias choices value as CONSOLE_API_URL
|
||||
assert config['FILES_URL'] == 'https://example.com'
|
||||
|
||||
assert config['SQLALCHEMY_DATABASE_URI'] == 'postgresql://postgres:@localhost:5432/dify'
|
||||
assert config['SQLALCHEMY_ENGINE_OPTIONS'] == {
|
||||
'connect_args': {
|
||||
'options': '-c timezone=UTC',
|
||||
},
|
||||
'max_overflow': 10,
|
||||
'pool_pre_ping': False,
|
||||
'pool_recycle': 3600,
|
||||
'pool_size': 30,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user