wesnoth / wesnoth-multiplayer-data-dashboard

This is a dashboard that allows you to query and visualize data that the Wesnoth Project collects about multiplayer games played on the official server.
2 stars 0 forks source link

Add support for app deployment configuration options from a file #5

Closed max-torch closed 9 months ago

max-torch commented 9 months ago

Description 

Add support for storing app configuration options and credentials in a file. Including additional options for specifying table names in the database (instead of hardcoding table names). Maybe also include the url base prefix in this config file.

Discussion from Discord:

Soliton: would be good to get the table name configurable. every other DB setting already is just not the table name. also get back the config file so one does not have to put sensitive data in env variables.

max_torch what kind of file extension do you have in mind? should this be a file in a hidden folder, like a ./.cfg?

Soliton [IRC] didn't you already use a config file before? looks like it was credentials.json. could be a more generic name like config.json since it presumably makes sense to put more stuff in there.

max_torch — Today at 11:27 PM i used .json before in my first attempt from 2 years ago just asking if you have any specific request