I can take a stab at a PR if one could give me some pointers on where to start looking at.
This PR would allow checking in app.ini to version control and use it in setting up a dockerized gitea instance. Right now app.ini can't be stored in version control due to saving passwords in plaintext.
I can't find the reference, but I believe another .ini
parser was considered and/or implemented that directly supported carrying settings from env variables. It was a couple of months ago. Perhaps another maintainer remembers.
ini support was added to viper so we could switch to it and potentially use alternative formats (yaml), but also utilize env variables as well.
In the meantime there is contrib/environment-to-ini
Thanks for the input! If I get time I'll take a look at viper.
Most helpful comment
In the meantime there is contrib/environment-to-ini