MySQL username and password protection

Hi,

I want to put MySQL login credentials in config.production.json file. Username and password are stored in plain text though.

How to protect it?

Can I fetch data from docker secrets to the json file, maybe?

You can pass config in with env variables if you don’t want to store credentials in files https://ghost.org/docs/config/#running-ghost-with-config-env-variables

1 Like