diff --git a/README.md b/README.md index 8ab1d65..3f1bd84 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ -# omniserve +![static/hostyoself2.png] -onetwoseven.site: 127 is the last network number in a class A network with a subnet mask of 255.0.0.0. 127.0.0.1 is the first assignable address in the subnet. - -## FAQ **How do I start web hosting?** You will need to setup port forwarding, a dynamic DNS, name registration, MySQL, PHP, Apache and take a online course in Javascript. diff --git a/pkg/server/server.go b/pkg/server/server.go index 66e82bb..d0dc203 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -90,8 +90,10 @@ Disallow: /`)) contentType = "text/javascript" case ".html": contentType = "text/html" + case ".png": + contentType = "image/png" } - w.Header().Set("Content-Type", contentType + "; charset=utf-8") + w.Header().Set("Content-Type", contentType) w.Write(b) return } else if r.URL.Path == "/" { diff --git a/static/hostyoself.png b/static/hostyoself.png new file mode 100644 index 0000000..d0086bf Binary files /dev/null and b/static/hostyoself.png differ diff --git a/static/hostyoself2.png b/static/hostyoself2.png new file mode 100644 index 0000000..de42bd2 Binary files /dev/null and b/static/hostyoself2.png differ diff --git a/templates/view.html b/templates/view.html index 7423d6f..6cac651 100644 --- a/templates/view.html +++ b/templates/view.html @@ -54,13 +54,16 @@ border: none; font-weight: bold; font-family: var(--mono-font); + font-size: 1em; }
-

hostyoself

+ +

Your files will be relayed at {{.PublicURL}}/. Multiple hosts can be used with this key: .