wp-local-docker-v2
wp-local-docker-v2 copied to clipboard
phpMyAdmin Shortcut
I believe it would be useful to allow a way to jump to the relevant phpMyAdmin page using the /__dbadmin /
URL like is done for memcache and ES.
The approach that could work:
- Write a
proxypass
rule in nginx for the appropriate host. - Add header using
proxy_set_header
to set auto-login. - Write a PHP file to check for header and automatically logs in using
wordpress
credentials. - Set up custom configuration for the main DB container to use the PHP file.
- Profit?
Bonus: If the system can detect the correct DB name, you can automagically only display the site's DB with the config. You'll need to find a way to pass that to nginx, however.