]> git.mxchange.org Git - friendica.git/commitdiff
[DOCS] Environment variables: Add explanation
authorMarcus Müller <25648755+M-arcus@users.noreply.github.com>
Tue, 15 May 2018 16:49:40 +0000 (18:49 +0200)
committerMarcus Müller <25648755+M-arcus@users.noreply.github.com>
Tue, 15 May 2018 16:49:40 +0000 (18:49 +0200)
Resolves https://github.com/friendica/friendica/issues/4791

doc/de/Settings.md
doc/htconfig.md

index 8a654e32c8518f8311c5f37dd45ed7a6e20614f6..b7b696ea652eddfb3ef92fa64818453738b08ce2 100644 (file)
@@ -344,6 +344,14 @@ Mit den folgenden Einstellungen kannst du die Zugriffsdaten für den Datenbank S
     $db_pass = 'db_password';
     $db_data = 'database_name';
 
+Sollten alle der folgenden Environment-Variablen gesetzt sein, wird Friendica diese anstatt der vorher konfigurierten Werte nutzen.
+
+    MYSQL_HOST
+    MYSQL_PORT
+    MYSQL_USERNAME
+    MYSQL_PASSWORD
+    MYSQL_DATABASE
+
 ## Administratoren
 
 Du kannst einen, oder mehrere Accounts, zu Administratoren machen.
index 6598fa142affa227a95a1b4fa3859de18520401d..4743da444cb95aaabc705c7ed8f3eb0f6a667af3 100644 (file)
@@ -124,3 +124,11 @@ The configuration variables db_host, db_user, db_pass and db_data are holding yo
 If you need to specify a port to access the database, you can do so by appending ":portnumber" to the db_host variable.
 
     $db_host = 'your.mysqlhost.com:123456';
+
+If all of the following environment variables are set, Friendica will use them instead of the previously configured variables for the db:
+
+    MYSQL_HOST
+    MYSQL_PORT
+    MYSQL_USERNAME
+    MYSQL_PASSWORD
+    MYSQL_DATABASE