File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Environment variables summary
56
56
* `` REDIS_1_NAME `` - define name of the Redis server
57
57
* `` REDIS_1_PORT `` - define port of the Redis server
58
58
* `` REDIS_1_AUTH `` - define password of the Redis server
59
+ * `` REDIS_1_AUTH_FILE `` - define file containing the password of the Redis server
59
60
* `` REDIS_1_DATABASES `` - You can modify you config to prevent phpRedisAdmin from using CONFIG command
60
61
* `` ADMIN_USER `` - define username for user-facing Basic Auth
61
62
* `` ADMIN_PASS `` - define password for user-facing Basic Auth
Original file line number Diff line number Diff line change 23
23
$ server_name = getenv ($ prefix . 'NAME ' );
24
24
$ server_host = getenv ($ prefix . 'HOST ' );
25
25
$ server_port = getenv ($ prefix . 'PORT ' );
26
- $ server_auth = getenv ($ prefix . 'AUTH ' );
26
+ if (getenv ($ prefix . 'AUTH_FILE ' ) !== false ) {
27
+ $ server_auth = file_get_contents (getenv ($ prefix . 'AUTH_FILE ' ));
28
+ } else {
29
+ $ server_auth = getenv ($ prefix . 'AUTH ' );
30
+ }
27
31
$ server_databases = getenv ($ prefix . 'DATABASES ' );
28
32
29
33
if (empty ($ server_host )) {
You can’t perform that action at this time.
0 commit comments