perf(web): change server configuration
This commit is contained in:
parent
a3e2062de7
commit
50d9555d2d
@ -171,7 +171,10 @@ func main() {
|
|||||||
}(tdbms)
|
}(tdbms)
|
||||||
log.Println("Initializing...")
|
log.Println("Initializing...")
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
Addr: ":42776",
|
Addr: ":42776",
|
||||||
|
IdleTimeout: time.Minute,
|
||||||
|
ReadTimeout: 10 * time.Second,
|
||||||
|
WriteTimeout: 30 * time.Second,
|
||||||
}
|
}
|
||||||
public_fs := http.FileServer(http.Dir("/srv/www/tanabata"))
|
public_fs := http.FileServer(http.Dir("/srv/www/tanabata"))
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user