Skip to content

gitea 容器设置 robots.txt ​

进入容器之后执行以下命令

bash
cd $GITEA_CUSTOM
echo -e "User-agent: *\nDisallow: /" > robots.txt

查看结果

bash
curl http://127.0.0.1:3000/robots.txt

搜索引擎索引 | Gitea Documentation