CodeIgniter Forums
Can I use the APPPATH/Config to store credentials file? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Can I use the APPPATH/Config to store credentials file? (/showthread.php?tid=88374)



Can I use the APPPATH/Config to store credentials file? - angeloghiotto - 08-30-2023

Hi,

I'm developing a new system, and the .env is not enough to store my configs, can I create a .config.json inside the app/Config folder? any thoughts? Is that a safe place to store it?

PS: It is not committed to the repo.

Thank you so much for your attention and participation.


RE: Can I use the APPPATH/Config to store credentials file? - ozornick - 08-30-2023

No problem. this is a development solution


RE: Can I use the APPPATH/Config to store credentials file? - InsiteFX - 08-30-2023

You might be able to use this addon for what you need.

CodeIgniter 4 Settings


RE: Can I use the APPPATH/Config to store credentials file? - kenjis - 08-30-2023

See https://12factor.net/config