funmaker / Hybooru

Hydrus-based booru-styled imageboard in React
https://booru.funmaker.moe/
MIT License
95 stars 15 forks source link

[Feature request] Support loading secrets separate from other configuration #35

Closed katanacrimson closed 9 months ago

katanacrimson commented 9 months ago

In order to better support other deployment platforms (e.g. kubernetes) where mixing configuration and secrets is considered a deviation from best practice, it would be considerably helpful if any credentials currently specified via the config file only could also be specified by ENV var or via a separate configuration file. This would also allow users to version control the majority of their configuration file without resulting in credentials being present in plaintext alongside the rest of the configuration.

funmaker commented 9 months ago

Done in v1.9.0, use HYDRUS_ADMIN_PASSWORD envvar