How can I use environment variables in Nginx.conf

From the official Nginx docker file: Using environment variables in nginx configuration: Out-of-the-box, Nginx doesn’t support using environment variables inside most configuration blocks. But envsubst may be used as a workaround if you need to generate your nginx configuration dynamically before nginx starts. Here is an example using docker-compose.yml: image: nginx volumes: – ./mysite.template:/etc/nginx/conf.d/mysite.template ports: … Read more

How and where are the provisioning script set up in WordPress?

Is there a native provisioning system set up already? No. I am thinking there might be some shell script, native scripts and provisioning scripts that didn’t run There are none, you have to create those yourself. I noticed the database wasn’t provisioned yet (meaning the tables weren’t created and the tables weren’t populated) WordPress won’t … Read more

wp-admin remove part of the url

I’ve searched in the admin templates. It seems the placeholders rely on the functions wp_get_referer() and wp_get_raw_referer() which use $_SERVER[“REQUEST_URI”], $_SERVER[‘HTTP_REFERER’] and a wp custom variable passed in the request : $_REQUEST[‘_wp_http_referer’]. So WordPress builds some URLs (apparently not all) on REQUEST_URI, that is /wp-admin/whatever (in the backend). The logs show that wp-admin/admin-ajax.php comes through … Read more