Commit ae4a5ac531e0b4c848301a0b0f1c4b248aa446c4
1 parent
cf9ab5eb
Exists in
stable-4.x
Add setting to avoid indexing duplicated content
Fixes #244 (cherry picked from commit f0f4b848e98e276d8303f8fb48201a71b396cfd8)
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
cookbooks/colab/templates/00-custom_settings.py.erb
@@ -34,6 +34,10 @@ SISP_HOST = "<%= node['config']['sisp_external_hostname'] %>" | @@ -34,6 +34,10 @@ SISP_HOST = "<%= node['config']['sisp_external_hostname'] %>" | ||
34 | ALLOWED_HOSTS = ["<%= node['config']['external_hostname'] %>", | 34 | ALLOWED_HOSTS = ["<%= node['config']['external_hostname'] %>", |
35 | "<%= node['config']['sisp_external_hostname'] %>"] | 35 | "<%= node['config']['sisp_external_hostname'] %>"] |
36 | 36 | ||
37 | +<% unless node['environment'] == "prod" %> | ||
38 | +ROBOTS_NOINDEX = True | ||
39 | +<% end %> | ||
40 | + | ||
37 | ## Disable indexing | 41 | ## Disable indexing |
38 | ROBOTS_NOINDEX = False | 42 | ROBOTS_NOINDEX = False |
39 | 43 |