Browse Source

environment variables

Maurits van der Schee 3 years ago
parent
commit
d98b2923ac
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      README.md

+ 12
- 0
README.md View File

@@ -83,6 +83,18 @@ These are all the configuration options and their default value between brackets
83 83
 - "debug": Show errors in the "X-Debug-Info" header (`false`)
84 84
 - "basePath": URI base path of the API (determined using PATH_INFO by default)
85 85
 
86
+All the above are also available as environment variables, so for instance:
87
+
88
+- PHP_CRUD_API_DRIVER=mysql
89
+- PHP_CRUD_API_ADDRESS=localhost
90
+- PHP_CRUD_API_PORT=3306
91
+- PHP_CRUD_API_DATABASE=php-crud-api
92
+- PHP_CRUD_API_USERNAME=php-crud-api
93
+- PHP_CRUD_API_PASSWORD=php-crud-api
94
+- PHP_CRUD_API_DEBUG=1
95
+
96
+The environment variables take precedence over the PHP configuration.
97
+
86 98
 ## Limitations
87 99
 
88 100
 These limitation and constrains apply:

Loading…
Cancel
Save