Commit f0f4b848e98e276d8303f8fb48201a71b396cfd8
1 parent
8e5713cc
Exists in
master
and in
39 other branches
Add setting to avoid indexing duplicated content
Fixes #244
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 |