From d95b474eabc1891d5cc7ea5a9b3de3dd67fa945d Mon Sep 17 00:00:00 2001 From: Mike King <2684049+3mkay@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:19:57 +0000 Subject: [PATCH 1/3] Delete nginx/noindex.conf No longer needed at the project level --- nginx/noindex.conf | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 nginx/noindex.conf diff --git a/nginx/noindex.conf b/nginx/noindex.conf deleted file mode 100644 index a640117..0000000 --- a/nginx/noindex.conf +++ /dev/null @@ -1,7 +0,0 @@ -#ddev-generated - -# Stop sites being indexed -location /robots.txt { - add_header Content-Type text/plain; - return 200 "User-agent: *\nDisallow: /\n"; -} From 8cf4c83ab2367ae51c73626adc847b5507c8cd12 Mon Sep 17 00:00:00 2001 From: Mike King <2684049+3mkay@users.noreply.github.com> Date: Sat, 8 Feb 2025 10:21:28 +0000 Subject: [PATCH 2/3] Update install.yaml Remove noindex from the uninstall process --- install.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/install.yaml b/install.yaml index 273b1ca..72d9a79 100644 --- a/install.yaml +++ b/install.yaml @@ -196,7 +196,6 @@ removal_actions: - rm nginx/libraries.conf - rm nginx/protect.conf - rm nginx/redirect.conf - - rm nginx/noindex.conf - rm -rf scripts - | if [ -f ${DDEV_APPROOT}/config.hooks.yaml ]; then From 9ec518ac64fd408fc0b77d82692cf84f83b26123 Mon Sep 17 00:00:00 2001 From: Bill Seremetis Date: Mon, 10 Feb 2025 10:50:20 +0200 Subject: [PATCH 3/3] Remove old noindex file if found --- install.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.yaml b/install.yaml index 72d9a79..5bceefc 100644 --- a/install.yaml +++ b/install.yaml @@ -146,6 +146,10 @@ post_install_actions: cp ${DDEV_APPROOT}/.ddev/scripts/sample.env ${DDEV_APPROOT}/.ddev/.env echo "Please configure upstream provider in .ddev/.env file!" fi + - | + if [ -f ${DDEV_APPROOT}/nginx/noindex.conf ]; then + rm ${DDEV_APPROOT}/nginx/noindex.conf + fi - cp -r ${DDEV_APPROOT}/.ddev/scripts/.vscode ${DDEV_APPROOT}/ - git add ${DDEV_APPROOT}/.ddev/config.annertech.yaml -f - git add ${DDEV_APPROOT}/.ddev/settings.local.*mode.php -f