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:
Paul Lindner 2017-12-27 14:24:12 -08:00 committed by Brad Fitzpatrick
parent 2329b8038c
commit 2c1f37be49
1 changed files with 6 additions and 0 deletions

View File

@ -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)