dolphinium
refactor: Modularize application into single-responsibility components
f43f2d3
raw
history blame contribute delete
949 Bytes
"""
Configuration management for the PharmaCircle AI Data Analyst.
Loads all necessary secrets and configuration parameters from environment variables.
This approach keeps sensitive data out of the source code and allows for flexible deployment.
"""
import os
# --- SSH Tunnel Configuration ---
# Credentials for establishing the SSH tunnel to the Solr server environment.
SSH_HOST = os.environ.get('SSH_HOST')
SSH_PORT = 5322
SSH_USER = os.environ.get('SSH_USER')
SSH_PASS = os.environ.get('SSH_PASS')
# --- Solr Configuration ---
# Details for the remote Solr instance and the local port for the tunnel.
REMOTE_SOLR_HOST = '69.167.186.48'
REMOTE_SOLR_PORT = 8983
LOCAL_BIND_PORT = 8983
SOLR_CORE_NAME = 'news'
SOLR_USER = os.environ.get('SOLR_USER')
SOLR_PASS = os.environ.get('SOLR_PASS')
# --- Google Gemini Configuration ---
# API key for accessing the Google Gemini large language model.
GEMINI_API_KEY = os.environ.get('GEMINI_API_KEY')