Dr. Jens Harbott be45290054 gitea: move robots.txt to public directory
Gitea wants us to move the robots.txt file to a new location. It
currently logs a warning about it:

2024/04/17 19:30:56 cmd/web.go:191:serveInstalled() [E] Found legacy public
      asset "robots.txt" in CustomPath. Please move it to
      /custom/public/robots.txt

Change-Id: Ic4a7f3bbe4633972e0409b37b511fdb03f968442
2024-04-19 14:17:41 +02:00

93 lines
1.9 KiB
Plaintext

# This was kindly seeded with a mix of
# https://git.lelux.fi/theel0ja/gitea-robots.txt/src/branch/master/robots.txt
# and
# https://github.com/robots.txt
# at 2020-07-01
# and https://gitea.com/robots.txt on 2024-01-05
#
# Some commented out items are left to indicate we have considered
# them and would like to explicitly allow them for indexing while they
# are not causing problems.
User-agent: *
Disallow: /api/*
Disallow: /avatars
Disallow: /user/*
# Disallow: /*/*/src/commit/*
# Disallow: /*/*/commit/*
# Disallow: /*/*/*/refs/*
Disallow: /*/*/*/star
Disallow: /*/*/*/watch
Disallow: /*/*/labels
Disallow: /*/*/activity/*
Disallow: /vendor/*
Disallow: /swagger.*.json
# Language spam
Disallow: /*?lang=
# from Github, to be cleaned
Allow: /*/*/tree/master
Allow: /*/*/blob/master
Disallow: /*/*/pulse
Disallow: /*/*/tree/*
Disallow: /*/*/blob/*
Disallow: /*/*/wiki/*/*
Disallow: /gist/*/*/*
Disallow: /oembed
Disallow: /*/forks
Disallow: /*/stars
Disallow: /*/download
Disallow: /*/revisions
Disallow: /*/*/issues/new
Disallow: /*/*/issues/search
Disallow: /*/*/commits/*/*
Disallow: /*/*/commits/*?author
Disallow: /*/*/commits/*?path
Disallow: /*/*/branches
Disallow: /*/*/tags
Disallow: /*/*/contributors
Disallow: /*/*/comments
Disallow: /*/*/stargazers
Disallow: /*/*/search
Disallow: /*/tarball/
Disallow: /*/zipball/
Disallow: /*/*/archive/
# Disallow: /raw/*
Disallow: /*/followers
Disallow: /*/following
Disallow: /stars/*
Disallow: /*/blame/
Disallow: /*/watchers
Disallow: /*/network
Disallow: /*/graphs
# Disallow: /*/raw/
Disallow: /*/compare/
Disallow: /*/cache/
Disallow: /*/*/blame/
Disallow: /*/*/watchers
Disallow: /*/*/network
Disallow: /*/*/graphs
# Disallow: /*/*/raw/
Disallow: /*/*/compare/
Disallow: /*/*/cache/
Disallow: /.git/
Disallow: /*/.git/
Disallow: /*.git$
Disallow: /*/sitemap.xml
Disallow: /search/advanced
Disallow: /search
Disallow: /*q=
Disallow: /*.atom
Crawl-delay: 2