mirror of https://github.com/perkeep/perkeep.git
website: Add Google Webmaster Tools verification file
- This allows Perkeep admins to use https://google.com/webmaster/tools - This verification file is mapped to user pmlindner@gmail.com - Once verified he can delegate ownership to other Perkeep maintainers. - File must remain for periodic verifications. Fixes #996 Change-Id: I8d991964f75acf1b14dedfeadc9d4dbe671bccd5
This commit is contained in:
parent
2329b8038c
commit
2c1f37be49
|
@ -880,6 +880,12 @@ func main() {
|
|||
mux.Handle(appPattern, godocHandler{})
|
||||
mux.HandleFunc(errPattern, errHandler)
|
||||
|
||||
// Google Webmaster Tools ownership proof:
|
||||
const webmasterToolsFile = "googlec74a9a91c9cfcd8c.html"
|
||||
mux.HandleFunc("/"+webmasterToolsFile, func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeContent(w, r, webmasterToolsFile, time.Time{}, strings.NewReader("google-site-verification: googlec74a9a91c9cfcd8c.html"))
|
||||
})
|
||||
|
||||
mux.HandleFunc("/r/", gerritRedirect)
|
||||
mux.HandleFunc("/dl/", releaseRedirect)
|
||||
mux.HandleFunc("/debug/ip", ipHandler)
|
||||
|
|
Loading…
Reference in New Issue