mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-07 06:20:29 +00:00
WIP Add environment variables for Database configuration. TODO test it with postgres
This commit is contained in:
parent
5bcf0fd3d0
commit
d3f5a603e5
6 changed files with 45 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue