Files
ea-chatbot-lg/backend/.env.example
Yunxiao Xu 68c0985482 feat(auth): Complete OIDC security refactor and modernize test suite
- Refactored OIDC flow to implement PKCE, state/nonce validation, and BFF pattern.
- Centralized configuration in Settings class (DEV_MODE, FRONTEND_URL, OIDC_REDIRECT_URI).
- Updated auth routers to use conditional secure cookie flags based on DEV_MODE.
- Modernized and cleaned up test suite by removing legacy Streamlit tests.
- Fixed linting errors and unused imports across the backend.
2026-02-15 02:50:26 -08:00

58 lines
1.4 KiB
Plaintext

# API Keys
OPENAI_API_KEY=your_openai_api_key_here
GOOGLE_API_KEY=your_google_api_key_here
# App Configuration
DATA_DIR=data
DATA_STATE=new_jersey
LOG_LEVEL=INFO
DEV_MODE=true
FRONTEND_URL=http://localhost:5173
# Security & JWT Configuration
SECRET_KEY=change-me-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Voter Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=blockdata
DB_USER=user
DB_PSWD=password
DB_TABLE=rd_gc_voters_nj
# Application/History Database Configuration
HISTORY_DB_URL=postgresql://user:password@localhost:5433/ea_history
# OIDC Configuration (Authentik/SSO)
OIDC_CLIENT_ID=your_client_id
OIDC_CLIENT_SECRET=your_client_secret
OIDC_SERVER_METADATA_URL=https://your-authentik.example.com/application/o/ea-chatbot/.well-known/openid-configuration
OIDC_REDIRECT_URI=http://localhost:8000/api/v1/auth/oidc/callback
# Node Configuration Overrides (Optional)
# Format: <NODE_NAME>_LLM__<PARAMETER>
# Possible parameters: PROVIDER, MODEL, TEMPERATURE, MAX_TOKENS
# Query Analyzer
# QUERY_ANALYZER_LLM__PROVIDER=openai
# QUERY_ANALYZER_LLM__MODEL=gpt-5-mini
# QUERY_ANALYZER_LLM__TEMPERATURE=0.0
# Planner
# PLANNER_LLM__PROVIDER=openai
# PLANNER_LLM__MODEL=gpt-5-mini
# Coder
# CODER_LLM__PROVIDER=openai
# CODER_LLM__MODEL=gpt-5-mini
# Summarizer
# SUMMARIZER_LLM__PROVIDER=openai
# SUMMARIZER_LLM__MODEL=gpt-5-mini
# Researcher
# RESEARCHER_LLM__PROVIDER=google
# RESEARCHER_LLM__MODEL=gemini-2.0-flash