Replace hardcoded DB credentials with environment-driven configuration.
Centralize DB settings in ingestion config, remove embedded secrets from ingestion helpers, and add an idempotent PostgreSQL bootstrap script to create role/database and apply schema safely. Made-with: Cursor
This commit is contained in:
14
.env.example
Normal file
14
.env.example
Normal file
@@ -0,0 +1,14 @@
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=options_db
|
||||
DB_USER=quant_user
|
||||
DB_PASSWORD=change_me
|
||||
PIPELINE_SYMBOLS=SPY
|
||||
|
||||
# For scripts/setup_postgres.py when creating role/database:
|
||||
# Use a superuser/admin account that can CREATE ROLE and CREATE DATABASE.
|
||||
POSTGRES_ADMIN_USER=postgres
|
||||
POSTGRES_ADMIN_PASSWORD=postgres
|
||||
POSTGRES_ADMIN_HOST=localhost
|
||||
POSTGRES_ADMIN_PORT=5432
|
||||
POSTGRES_ADMIN_DB=postgres
|
||||
Reference in New Issue
Block a user