mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 20:17:21 +00:00
Support custom robots.txt
This commit is contained in:
@ -108,6 +108,7 @@ var (
|
||||
ProdMode bool
|
||||
RunUser string
|
||||
IsWindows bool
|
||||
HasRobotsTxt bool
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -260,6 +261,8 @@ func NewConfigContext() {
|
||||
|
||||
Langs = Cfg.MustValueArray("i18n", "LANGS", ",")
|
||||
Names = Cfg.MustValueArray("i18n", "NAMES", ",")
|
||||
|
||||
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))
|
||||
}
|
||||
|
||||
var Service struct {
|
||||
|
Reference in New Issue
Block a user