Skip to content
Snippets Groups Projects
Verified Commit dd0f1217 authored by David Mehren's avatar David Mehren
Browse files

Copy robots.txt denying all bots

parent 3f154343
No related branches found
No related tags found
No related merge requests found
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
User-Agent: *
Disallow: /
......@@ -70,6 +70,16 @@
mode: '0600'
notify: Restart gitlab
# We always copy this file, it can be used by adding to gitlab.rb:
# nginx['custom_gitlab_server_config'] = "\nlocation =/robots.txt { alias /var/opt/gitlab/deny_all_robots.txt; }\n"
- name: Copy deny-all robots.txt
ansible.builtin.copy:
src: deny_all_robots.txt
dest: /var/opt/gitlab/deny_all_robots.txt
owner: gitlab-www
group: root
mode: "0644"
- name: Copy gitlab-dump service
ansible.builtin.template:
src: gitlab_dump.service.j2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment