Gitea 1.15.0 robots.txt

Hello,

after upgrading my Gitea to 1.15.0 (using the Docker image) my robots.txt is not served anymore. I’m assuming this has to do with the changes in add `/assets` as root dir of public files by a1012112796 · Pull Request #15219 · go-gitea/gitea · GitHub which changed directories around. However, I can not figure out where the robots.txt has to go in the new directory structure. Does anyone know where I need to put it so that it gets served at {domain}/robots.txt?

Thanks in advance

Ok, I have found it, it needs to be put in the $GITEA_CUSTOM directory as said in the linked PR. However, you appearently need to restart Gitea for this to take effect.

1 Like