mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
feat: centralize Electric SQL user credentials in configuration
- Added centralized configuration for Electric SQL user credentials in env.py. - Updated migration script to utilize these credentials for creating and granting permissions to the Electric SQL user.
This commit is contained in:
parent
ee3a0a9ab7
commit
e28be9d78c
2 changed files with 25 additions and 11 deletions
|
|
@ -25,6 +25,15 @@ database_url = os.getenv("DATABASE_URL")
|
|||
if database_url:
|
||||
config.set_main_option("sqlalchemy.url", database_url)
|
||||
|
||||
# Electric SQL user credentials - centralized configuration for migrations
|
||||
# These are used by migrations that set up Electric SQL replication
|
||||
config.set_main_option(
|
||||
"electric_db_user", os.getenv("ELECTRIC_DB_USER", "electric")
|
||||
)
|
||||
config.set_main_option(
|
||||
"electric_db_password", os.getenv("ELECTRIC_DB_PASSWORD", "electric_password")
|
||||
)
|
||||
|
||||
# Interpret the config file for Python logging.
|
||||
# This line sets up loggers basically.
|
||||
if config.config_file_name is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue