diff --git a/images/nginx/helpers/100_x-robots-header-development.conf b/images/nginx/helpers/100_x-robots-header-development.conf deleted file mode 100644 index 06a281a9e..000000000 --- a/images/nginx/helpers/100_x-robots-header-development.conf +++ /dev/null @@ -1,15 +0,0 @@ -# Set X-Robots-Tag to 'noindex, nofollow' for development environments and Lagoon autogenerated routes -header_filter_by_lua_block { - -- escape characters in the hostname - local host = string.gsub(ngx.var.host, "%p", "%%%1") - - -- check to see if we are a development environment - if (os.getenv("LAGOON_ENVIRONMENT_TYPE") and string.match(os.getenv("LAGOON_ENVIRONMENT_TYPE"), 'development')) then - ngx.header["X-Robots-Tag"] = 'noindex, nofollow'; - end - - -- check hostname against autogenerated routes - if (os.getenv("LAGOON_AUTOGENERATED_ROUTES") and string.match(os.getenv("LAGOON_AUTOGENERATED_ROUTES"), host.."$")) then - ngx.header["X-Robots-Tag"] = 'noindex, nofollow'; - end -}