kopia lustrzana https://github.com/cblgh/lieu
Added a robots.txt file
rodzic
d02edd35ca
commit
b4a2e5e269
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /*?
|
|
@ -255,8 +255,9 @@ func Serve(config types.Config) {
|
||||||
http.HandleFunc("/webring", handler.webringRoute)
|
http.HandleFunc("/webring", handler.webringRoute)
|
||||||
http.HandleFunc("/filtered", handler.filteredRoute)
|
http.HandleFunc("/filtered", handler.filteredRoute)
|
||||||
|
|
||||||
fileserver := http.FileServer(http.Dir("html/assets/"))
|
fileserver := http.FileServer(http.Dir("html/"))
|
||||||
http.Handle("/assets/", http.StripPrefix("/assets/", fileserver))
|
http.Handle("/assets/", fileserver)
|
||||||
|
http.Handle("/robots.txt", fileserver)
|
||||||
|
|
||||||
portstr := fmt.Sprintf(":%d", config.General.Port)
|
portstr := fmt.Sprintf(":%d", config.General.Port)
|
||||||
fmt.Println("Listening on port: ", portstr)
|
fmt.Println("Listening on port: ", portstr)
|
||||||
|
|
Ładowanie…
Reference in New Issue