Gitea: [feature request] read environment variables when loading app.ini

Created on 3 Feb 2020  路  4Comments  路  Source: go-gitea/gitea

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.

kinfeature kinproposal

Most helpful comment

In the meantime there is contrib/environment-to-ini

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings