Browse Source

Adding configuration information for the database of the development environment.

wangxq 2 months ago
parent
commit
3638568a29
1 changed files with 27 additions and 7 deletions
  1. 27 7
      app/config/config.py

+ 27 - 7
app/config/config.py

@@ -19,25 +19,41 @@ class Config:
     UPLOAD_FOLDER = f"{FILE_PATH}resource_uploads/"
     ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'xlsx', 'xls', 'csv'}
     
-    # MinIO configurations
+    # MinIO configurations - 原配置
+    """
     MINIO_HOST = os.environ.get('MINIO_HOST') or 'minio.citupro.com'
     MINIO_USER = os.environ.get('MINIO_USER') or 'default-user'
     MINIO_PASSWORD = os.environ.get('MINIO_PASSWORD') or 'default-password'
     MINIO_SECURE = True
+    """
     
-    # Bucket configurations
+    # MinIO configurations - 新配置
+    MINIO_HOST = '192.168.67.138:9000'
+    MINIO_USER = 'citu-test'
+    MINIO_PASSWORD = 'citu-test'
+    MINIO_SECURE = False  # 内网环境,设置为 False
+    
+    # Bucket configurations - 原配置
+    """
     BUCKET_NAME = os.environ.get('BUCKET_NAME') or 'dev'
     if PLATFORM == 'windows':
-        PREFIX = 'dataops_test'
+        PREFIX = 'dataops-test'
     elif PLATFORM == 'linux':
         PREFIX = 'dataops'
+    """
+    
+    # Bucket configurations - 新配置
+    BUCKET_NAME = 'dataops-test'
+    PREFIX = ''  # 由于 bucket_name 已经包含了所需信息,PREFIX 可以置空
     
     # 新增端口配置基类设置
     PORT = 5500  # 默认端口
 
     # 修改后(PostgreSQL配置)
      
-    SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:citupgdba@192.168.3.143:5432/dataops'
+    # SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:citupgdba@192.168.3.143:5432/dataops'
+    # 本地开发环境
+    SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@192.168.67.138:5432/dataops'
     SQLALCHEMY_ENGINE_OPTIONS = {
         'pool_pre_ping': True,
         'pool_recycle': 300,
@@ -58,10 +74,14 @@ class Config:
 
     # Neo4j配置段
      
-    NEO4J_URI = "bolt://192.168.3.143:7687"
-    NEO4J_HTTP_URI = "http://192.168.3.143:7474"
+    # NEO4J_URI = "bolt://192.168.3.143:7687"
+    # NEO4J_HTTP_URI = "http://192.168.3.143:7474"
+    # NEO4J_USER = "neo4j"
+    # NEO4J_PASSWORD = "mxlneo4j"
+    NEO4J_URI = "bolt://192.168.67.138:7687"
+    NEO4J_HTTP_URI = "http://192.168.67.138:7474"
     NEO4J_USER = "neo4j"
-    NEO4J_PASSWORD = "mxlneo4j"
+    NEO4J_PASSWORD = "Doudou312$"
     NEO4J_ENCRYPTED = False  # 内网环境可关闭加密 
 
     # Neo4j配置段