message: lua comments are not #
diff: # Set X-Robots-Tag to 'noindex, nofollow' for development environments and Lagoon autogenerated routes
  header_filter_by_lua_block {
  - # escape characters in the hostname
  + -- escape characters in the hostname
  host = string.gsub(ngx.var.host, "%p", "%%%1")
  - # check to see if we are a development environment
  + -- check to see if we are a development environment
  if string.match (os.getenv("LAGOON_ENVIRONMENT_TYPE"), 'development') then
  ngx.header["X-Robots-Tag"] = 'noindex, nofollow';
  - # check hostname against autogenerated routes
  + -- check hostname against autogenerated routes
  elseif string.match (os.getenv("LAGOON_AUTOGENERATED_ROUTES"),host) then
  ngx.header["X-Robots-Tag"] = 'noindex, nofollow';
  end
  