diff --git a/go.mod b/go.mod
index acdb994..a350cb5 100644
--- a/go.mod
+++ b/go.mod
@@ -3,6 +3,7 @@ module github.com/Kugelschieber/marvinblum.de
go 1.14
require (
+ github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/caddyserver/certmagic v0.10.13 // indirect
github.com/emvi/logbuch v0.0.0-20200214115750-61de9b6d5934 // indirect
github.com/gorilla/mux v1.7.4 // indirect
diff --git a/go.sum b/go.sum
index 44c483f..50418f0 100644
--- a/go.sum
+++ b/go.sum
@@ -37,6 +37,8 @@ github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6L
github.com/Azure/go-autorest/tracing v0.1.0/go.mod h1:ROEEAFwXycQw7Sn3DXNtEedEvdeRAgDr0izn4z5Ij88=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
+github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=
+github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
github.com/OpenDNS/vegadns2client v0.0.0-20180418235048-a3fa4a771d87/go.mod h1:iGLljf5n9GjT6kc0HBvyI1nOKnGQbNB66VzSNbK5iks=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
diff --git a/main.go b/main.go
index 7d3afb3..3aaf2a6 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "github.com/NYTimes/gziphandler"
"github.com/caddyserver/certmagic"
"github.com/emvi/logbuch"
"github.com/gorilla/mux"
@@ -42,7 +43,7 @@ func logEnvConfig() {
func setupRouter() *mux.Router {
router := mux.NewRouter()
- router.PathPrefix(staticDirPrefix).Handler(http.StripPrefix(staticDirPrefix, http.FileServer(http.Dir(staticDir))))
+ router.PathPrefix(staticDirPrefix).Handler(http.StripPrefix(staticDirPrefix, gziphandler.GzipHandler(http.FileServer(http.Dir(staticDir)))))
return router
}
diff --git a/static/avatar_100.jpg b/static/avatar_100.jpg
new file mode 100644
index 0000000..0761b32
Binary files /dev/null and b/static/avatar_100.jpg differ
diff --git a/static/favicon.png b/static/favicon.png
deleted file mode 100644
index 9838123..0000000
Binary files a/static/favicon.png and /dev/null differ
diff --git a/static/favicon/android-chrome-192x192.png b/static/favicon/android-chrome-192x192.png
new file mode 100644
index 0000000..cab780c
Binary files /dev/null and b/static/favicon/android-chrome-192x192.png differ
diff --git a/static/favicon/android-chrome-384x384.png b/static/favicon/android-chrome-384x384.png
new file mode 100644
index 0000000..0b7a19f
Binary files /dev/null and b/static/favicon/android-chrome-384x384.png differ
diff --git a/static/favicon/apple-touch-icon.png b/static/favicon/apple-touch-icon.png
new file mode 100644
index 0000000..0b23ec6
Binary files /dev/null and b/static/favicon/apple-touch-icon.png differ
diff --git a/static/favicon/browserconfig.xml b/static/favicon/browserconfig.xml
new file mode 100644
index 0000000..b3930d0
--- /dev/null
+++ b/static/favicon/browserconfig.xml
@@ -0,0 +1,9 @@
+
+