Add robots.txt for gitea

This commit is contained in:
Jake Howard 2023-01-28 15:32:34 +00:00
parent 52d543d758
commit 4fd3945c47
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,4 @@
User-agent: *
# Ignore mirrored repos
Disallow: /mirror/

View file

@ -27,3 +27,12 @@
owner: "{{ docker_user.name }}"
notify: restart gitea
become: true
- name: Install robots.txt
template:
src: files/robots.txt
dest: "{{ app_data_dir }}/gitea/data/custom/robots.txt"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
notify: restart gitea
become: true