WIP Add environment variables for Database configuration. TODO test it with postgres

This commit is contained in:
Sara Aimée Smiseth 2021-05-01 13:04:23 +02:00
parent 5bcf0fd3d0
commit d3f5a603e5
6 changed files with 45 additions and 7 deletions

View file

@ -21,6 +21,10 @@ export SERVER_CONTACT_INFO_SECURITY=${SERVER_CONTACT_INFO_SECURITY:-"xmpp:securi
export SERVER_CONTACT_INFO_SUPPORT=${SERVER_CONTACT_INFO_SUPPORT:-"xmpp:support@$DOMAIN"}
export PROSODY_ADMINS=${PROSODY_ADMINS:-""}
# TODO sort into above
export DB_DRIVER=${DB_DRIVER:-"SQLite3"}
export DB_DATABASE=${DB_DATABASE:-"prosody.sqlite"}
if [[ "$1" != "prosody" ]]; then
exec prosodyctl $*
exit 0;