-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configuration: support environment variables #3543
Comments
There are already some unofficial Docker images that support this. Maybe worth a look? Important would be to be able to set the API key secret via an ENV variable so that on redeployment of the Docker image one doesn't have to manually change all external services to a new random API key. Thanks! |
Implemented. The PR is #3572. Please note that there is going to be a little Etherpad-specific remark, due to being tied to use a JSON file for configuration. The documentation is in https://github.com/ether/etherpad-lite/blob/3b6b12e8482bb641252c2aa8fff225d61cd5225b/settings.json.template.
|
That looks great already. Any chance to also implement setting the APIKEY.txt (as explained here: https://github.com/ether/etherpad-lite/wiki/HTTP-API ), similar to how this Docker image does it: https://github.com/tvelocity/dockerfiles/tree/master/etherpad-lite ? Or is there another way (with a volume?) to prevent the API key changing when recreating/updating the docker image? My use-case: I have Etherpad integrated in Dokuwiki and Nextcloud, and both require setting the API key, and ideally I would not have to change it manually every time the Docker image is updated. Thanks a lot! |
This is awesome! Thanks for implementing it @muxator Any possibility of releasing this in a tagged version soon without waiting for other issues slotted for 1.8? I'd love to be able to use this from an Thanks again! |
@muxator Here is something I made to run etherpad-lite on kubernetes. https://github.com/gobengo/etherpad-lite Configuring the database credentials is most appropriate with environment variables (from a k8s secret) in that context, which requires this feature. But since there isn't a release that has this feature yet, I had to use the 'latest' tag of the docker image. Just sharing the use case. Thanks again for adding this. Look forward to having it in 1.8 |
Hi, @gobengo, I am glad this enabled a new deployment possibility. A rough breakdown of the remaining issues for the 1.8 milestone is as follows:
If you have the possibility of working on 1.a, 1.b or 2, this could help a lot. |
A common use case when running an application inside Docker is passing configuration parameters via Environment variables.
We could introduce support for reading the values of configuration parameters from environment variables in
settings.json
, taking inspiration from ElasticSearch's environment variable substitution:The text was updated successfully, but these errors were encountered: