Skip to content

Commit

Permalink
Merge pull request #34 from govCMS/feature/GOVCMSD8-143-robots.txt
Browse files Browse the repository at this point in the history
[GOVCMSD8-143] Fixing the script to disallow all in robots.txt for no…
  • Loading branch information
pandaskii authored May 13, 2019
2 parents 7a67e66 + ea04a1f commit a3b8b3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docker/images/nginx/no-robots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#

if [ ! "${LAGOON_ENVIRONMENT_TYPE}" == "production" ]; then
printf "User-agent: *\nDisallow: /\n" > /app/robots.txt
printf "User-agent: *\nDisallow: /\n" > /app/web/robots.txt
fi
4 changes: 4 additions & 0 deletions tests/goss/goss.nginx-drupal.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
gossfile:
sanitise.yaml: {}

file:
/app/web/robots.txt:
exists: true
2 changes: 0 additions & 2 deletions tests/goss/sanitise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ file:
exists: false
/app/web/web.config:
exists: false
/app/web/robots.txt:
exists: false
/app/web/.editorconfig:
exists: false
/app/web/favicon.ico:
Expand Down

0 comments on commit a3b8b3a

Please sign in to comment.