5 ms·
It's years old, but I listened to the advice of- https://dennisforbes.ca/index.php/2013/08/07/ten-reasons-you-should-still-use-nginx/ https://dennisforbes.ca/i
by grobbles 10y ago
It's years old, but I listened to the advice of-
https://dennisforbes.ca/index.php/2013/08/07/ten-reasons-you-should-still-use-nginx/ https://dennisforbes.ca/index.php/2013/08/07/ten-reasons-you...
-and in re-analysis it all holds completely true. Nginx gives my deploy flexibility, at essentially negligible cost. And no Go development should include a bunch of boilerplate code to do banal stuff like serving static content.
- insertnickname 10y agoStatic file server in one line of Go: http.ListenAndServe(":8080", http.FileServer(http.Dir("/usr/share/doc")) https://godoc.org/net/http#FileServer https://godoc.org/net/http#FileServer