Skip to content

Commit 9b2667c

Browse files
committed
Fixup config and edit the README
1 parent 5e50958 commit 9b2667c

File tree

5 files changed

+59
-22
lines changed

5 files changed

+59
-22
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ docker run --name phpmyadmin -d -e PMA_HOSTS='sslhost,nosslhost' -e PMA_SSLS='1,
189189
* ``PMA_SSLS`` - comma separated list of `0` and `1` defining SSL usage for the corresponding MySQL connections
190190
* ``PMA_SSL_VERIFY`` - when set to 1, enables SSL certificate verification for the MySQL connection.
191191
* ``PMA_SSL_VERIFIES`` - comma-separated list of `0` and `1` to enable or disable SSL certificate verification for multiple MySQL connections.
192-
* ``PMA_SSL_CA_BASE64`` - in the context of mutual TLS security, allows setting your CA file as a base64 string inside the default `config.inc.php`.
193-
* ``PMA_SSL_CAS_BASE64`` - in the context of mutual TLS security, allows setting multiple CA files as a comma-separated list of base64 strings inside the default `config.inc.php`.
194-
* ``PMA_SSL_CERT_BASE64`` - in the context of mutual TLS security, allows setting your CERT file as a base64 string inside the default `config.inc.php`.
195-
* ``PMA_SSL_CERTS_BASE64`` - in the context of mutual TLS security, allows setting multiple CERT files as a comma-separated list of base64 strings inside the default `config.inc.php`.
196-
* ``PMA_SSL_KEY_BASE64`` - in the context of mutual TLS security, allows setting your KEY file as a base64 string inside the default `config.inc.php`.
197-
* ``PMA_SSL_KEYS_BASE64`` - in the context of mutual TLS security, allows setting multiple KEY files as a comma-separated list of base64 strings inside the default `config.inc.php`.
192+
* ``PMA_SSL_CA`` - in the context of mutual TLS security, allows setting your CA certificate file as a string inside the default `config.inc.php`.
193+
* ``PMA_SSL_CAS`` - in the context of mutual TLS security, allows setting multiple CA certificate files as a comma-separated list of strings inside the default `config.inc.php`.
194+
* ``PMA_SSL_CERT`` - in the context of mutual TLS security, allows setting your certificate file as a string inside the default `config.inc.php`.
195+
* ``PMA_SSL_CERTS`` - in the context of mutual TLS security, allows setting multiple certificate files as a comma-separated list of strings inside the default `config.inc.php`.
196+
* ``PMA_SSL_KEY`` - in the context of mutual TLS security, allows setting your private key file as a string inside the default `config.inc.php`.
197+
* ``PMA_SSL_KEYS`` - in the context of mutual TLS security, allows setting multiple private key files as a comma-separated list of strings inside the default `config.inc.php`.
198198
* ``PMA_USER`` and ``PMA_PASSWORD`` - define username and password to use only with the `config` authentication method
199199
* ``PMA_ABSOLUTE_URI`` - the full URL to phpMyAdmin. Sometimes needed when used in a reverse-proxy configuration. Don't set this unless needed. See [documentation](https://docs.phpmyadmin.net/en/latest/config.html#cfg_PmaAbsoluteUri).
200200
* ``PMA_CONFIG_BASE64`` - if set, this option will override the default `config.inc.php` with the base64 decoded contents of the variable
@@ -221,6 +221,19 @@ For usage with Docker secrets, appending ``_FILE`` to the ``PMA_PASSWORD`` envir
221221
docker run --name phpmyadmin -d -e PMA_PASSWORD_FILE=/run/secrets/db_password.txt -p 8080:80 phpmyadmin:latest
222222
```
223223

224+
#### Variables that can store the file contents using ``_BASE64``
225+
226+
- `PMA_SSL_CA`
227+
- `PMA_SSL_CAS`
228+
- `PMA_SSL_KEY`
229+
- `PMA_SSL_KEYS`
230+
- `PMA_SSL_CERT`
231+
- `PMA_SSL_CERTS`
232+
233+
Also includes: `PMA_CONFIG_BASE64` or `PMA_USER_CONFIG_BASE64`.
234+
235+
For example, the variable would be named `PMA_SSL_CA_BASE64` and the value is the base64 encoded contents of the file.
236+
224237
#### Variables that can be read from a file using ``_FILE``
225238

226239
- `MYSQL_ROOT_PASSWORD`

apache/config.inc.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@
2929
'PMA_UPLOADDIR',
3030
'PMA_SAVEDIR',
3131
'PMA_SSL',
32+
'PMA_SSLS',
3233
'PMA_SSL_DIR',
3334
'PMA_SSL_VERIFY',
34-
'PMA_SSL_CA',
35-
'PMA_SSL_KEY',
36-
'PMA_SSL_CERT',
37-
'PMA_SSLS',
3835
'PMA_SSL_VERIFIES',
36+
'PMA_SSL_CA',
3937
'PMA_SSL_CAS',
38+
'PMA_SSL_CA_BASE64',
39+
'PMA_SSL_CAS_BASE64',
40+
'PMA_SSL_KEY',
4041
'PMA_SSL_KEYS',
42+
'PMA_SSL_KEY_BASE64',
43+
'PMA_SSL_KEYS_BASE64',
44+
'PMA_SSL_CERT',
4145
'PMA_SSL_CERTS',
46+
'PMA_SSL_CERT_BASE64',
47+
'PMA_SSL_CERTS_BASE64',
4248
];
4349

4450
foreach ($vars as $var) {

config.inc.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@
2929
'PMA_UPLOADDIR',
3030
'PMA_SAVEDIR',
3131
'PMA_SSL',
32+
'PMA_SSLS',
3233
'PMA_SSL_DIR',
3334
'PMA_SSL_VERIFY',
34-
'PMA_SSL_CA',
35-
'PMA_SSL_KEY',
36-
'PMA_SSL_CERT',
37-
'PMA_SSLS',
3835
'PMA_SSL_VERIFIES',
36+
'PMA_SSL_CA',
3937
'PMA_SSL_CAS',
38+
'PMA_SSL_CA_BASE64',
39+
'PMA_SSL_CAS_BASE64',
40+
'PMA_SSL_KEY',
4041
'PMA_SSL_KEYS',
42+
'PMA_SSL_KEY_BASE64',
43+
'PMA_SSL_KEYS_BASE64',
44+
'PMA_SSL_CERT',
4145
'PMA_SSL_CERTS',
46+
'PMA_SSL_CERT_BASE64',
47+
'PMA_SSL_CERTS_BASE64',
4248
];
4349

4450
foreach ($vars as $var) {

fpm-alpine/config.inc.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@
2929
'PMA_UPLOADDIR',
3030
'PMA_SAVEDIR',
3131
'PMA_SSL',
32+
'PMA_SSLS',
3233
'PMA_SSL_DIR',
3334
'PMA_SSL_VERIFY',
34-
'PMA_SSL_CA',
35-
'PMA_SSL_KEY',
36-
'PMA_SSL_CERT',
37-
'PMA_SSLS',
3835
'PMA_SSL_VERIFIES',
36+
'PMA_SSL_CA',
3937
'PMA_SSL_CAS',
38+
'PMA_SSL_CA_BASE64',
39+
'PMA_SSL_CAS_BASE64',
40+
'PMA_SSL_KEY',
4041
'PMA_SSL_KEYS',
42+
'PMA_SSL_KEY_BASE64',
43+
'PMA_SSL_KEYS_BASE64',
44+
'PMA_SSL_CERT',
4145
'PMA_SSL_CERTS',
46+
'PMA_SSL_CERT_BASE64',
47+
'PMA_SSL_CERTS_BASE64',
4248
];
4349

4450
foreach ($vars as $var) {

fpm/config.inc.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@
2929
'PMA_UPLOADDIR',
3030
'PMA_SAVEDIR',
3131
'PMA_SSL',
32+
'PMA_SSLS',
3233
'PMA_SSL_DIR',
3334
'PMA_SSL_VERIFY',
34-
'PMA_SSL_CA',
35-
'PMA_SSL_KEY',
36-
'PMA_SSL_CERT',
37-
'PMA_SSLS',
3835
'PMA_SSL_VERIFIES',
36+
'PMA_SSL_CA',
3937
'PMA_SSL_CAS',
38+
'PMA_SSL_CA_BASE64',
39+
'PMA_SSL_CAS_BASE64',
40+
'PMA_SSL_KEY',
4041
'PMA_SSL_KEYS',
42+
'PMA_SSL_KEY_BASE64',
43+
'PMA_SSL_KEYS_BASE64',
44+
'PMA_SSL_CERT',
4145
'PMA_SSL_CERTS',
46+
'PMA_SSL_CERT_BASE64',
47+
'PMA_SSL_CERTS_BASE64',
4248
];
4349

4450
foreach ($vars as $var) {

0 commit comments

Comments
 (0)