Common: Support postgreSQL database as the metadata db. (#2357)

https://github.com/infiniflow/ragflow/issues/2356

### What problem does this PR solve?

As title

### Type of change

- [X] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Fachuan Bai
2024-09-12 15:12:39 +08:00
committed by GitHub
parent ba834aee26
commit f8e9a0590f
5 changed files with 89 additions and 12 deletions

View File

@ -164,7 +164,8 @@ RANDOM_INSTANCE_ID = get_base_config(
PROXY = get_base_config(RAG_FLOW_SERVICE_NAME, {}).get("proxy")
PROXY_PROTOCOL = get_base_config(RAG_FLOW_SERVICE_NAME, {}).get("protocol")
DATABASE = decrypt_database_config(name="mysql")
DATABASE_TYPE = os.getenv("DB_TYPE", 'mysql')
DATABASE = decrypt_database_config(name=DATABASE_TYPE)
# Switch
# upload