[#33] Move config from php fpm script to wp-config
Description
Move and add dynamic configuration improvements to our WordPress container setup:
-
Dynamic Database & Site Settings:
- Database credentials and table prefix are loaded from environment variables from
wp-config.php
. - Site URL constants (e.g.
WP_HOME
,WP_SITEURL
) are defined based on theAPPLICATION_NAME
environment variable and loaded fromwp-config.php
. - Filters override site options like
blogname
andadmin_email
to reflect environment values without unnecessary database writes.
- Database credentials and table prefix are loaded from environment variables from
-
Dynamic OpenID Connect Settings:
- A must-use plugin (
openid-settings.php
) has been added to automatically update theopenid_connect_generic_settings
option during theinit
hook. - The plugin merges existing settings with new values derived from environment variables, ensuring that the OpenID Connect plugin always uses current configuration data without manual intervention.
- A must-use plugin (
-
Dynamic Authentication Keys & Salts:
- Instead of hardcoding security keys, the configuration now fetches random salted keys from the WordPress.org secret-key API and defines them dynamically.
Testing
Edited by Georgios Tsoulos
Merge request reports
Activity
Please register or sign in to reply