hatnote / montage

📷 Photo evaluation tool for and by Wiki Loves competitions
https://commons.wikimedia.org/wiki/Commons:Montage
BSD 3-Clause "New" or "Revised" License
36 stars 11 forks source link

Factor out database url / credentials in config #233

Open mahmoud opened 1 year ago

mahmoud commented 1 year ago

Per this phabricator ticket, if we allow the config to also support reading from a separate file, that will allow toolforge admins to rotate db passwords without worrying about modifying our prod config directly.

For ref, QuickCategories passes through kwargs for this: https://github.com/lucaswerkmeister/tool-quickcategories/blob/e27a219ad0b1ebec5d5af0393bc5d6dbc63ea13a/config.yaml.example#L6-L12