From 9d6a10ffe260b36ef76a73e8d53c835e8d5562c6 Mon Sep 17 00:00:00 2001 From: Mantas Date: Mon, 1 May 2017 19:40:08 +0300 Subject: Complete refactor: add beta of #2, fix #1 --- LICENSE.md | 25 ++++ README.md | 56 ++++++++ config.yml | 12 ++ content/incident/dns-catastrophy.md | 24 ++++ layouts/incident/post.html | 8 ++ layouts/incident/single.html | 13 ++ layouts/index.html | 278 ++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 11 ++ layouts/partials/meta.html | 206 ++++++++++++++++++++++++++ public/index.xml | 23 +++ public/post/index.xml | 23 +++ public/sitemap.xml | 21 +++ static/favicon.ico | Bin 0 -> 5430 bytes static/logo.png | Bin 0 -> 979 bytes 14 files changed, 700 insertions(+) create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 config.yml create mode 100644 content/incident/dns-catastrophy.md create mode 100644 layouts/incident/post.html create mode 100644 layouts/incident/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/meta.html create mode 100644 public/index.xml create mode 100644 public/post/index.xml create mode 100644 public/sitemap.xml create mode 100644 static/favicon.ico create mode 100644 static/logo.png diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..470243e --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,25 @@ +The MIT License (MIT) +===================== + +Copyright (C) 2017 Mantas Vilčinskas + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +*THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE.* diff --git a/README.md b/README.md new file mode 100644 index 0000000..efccdd0 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# cState + +[![Donate](https://img.shields.io/badge/support_us-donate-yellow.svg?style=flat-square)](https://www.polargalaxy.com/donate) [![Discord](https://img.shields.io/badge/discord-join%20chat-7289DA.svg?style=flat-square)](https://www.polargalaxy.com/discord) [![feross/standard compliant](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![Twitter](https://img.shields.io/twitter/follow/polargalaxymc.svg?style=social&label=Follow)](https://twitter.com/polargalaxymc) + +> Blazing fast status page with excellent browser support. Built with Hugo. Work in progress, many features planned. + +Is [statuspage.io](https://www.statuspage.io/) too expensive? Do you need an open source alternative for your project that is supported on archaic browsers like IE8 and never stops beating? cState is here to help. + +[Live demo](https://status.polargalaxy.com) + +[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/onlinemantas/cstatet) + +## Usage + +To set up cState, do the following: + +1. Deploy the status page, preferably using [Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/onlinemantas/cstatet) and/or [GitHub Pages](https://pages.github.com). +2. Upload your favicon and logo to `/static/` and edit `config.yml`. + +Once that is done, you can create a new post like this: + +``` +hugo new incident/dns-killed-us.md +``` + +Then, go into `incident/dns-killed-us.md` and follow this format: + +```md +--- +Title: Catastrophic DNS failure +Description: After moving from one server to another, some DNS settings had unknowingly been tweaked which caused a complete outage for everything hosted on our domain. +Date: 2017-04-04T15:58:32 +Section: post +--- + +##### Post-mortem + +On Monday, Amazon gave up on us. +``` + +## Features + ++ Built with [Hugo](https://gohugo.io), on a sturdy foundation ++ Works everywhere: all modern browsers, even IE8 and later ++ You can subscribe to web notifications for status updates ++ Simple, focused, and robust design ++ Easy to edit and deploy + +## Resources + ++ [Issue tracker](https://github.com/onlinemantas/cstate) ++ [Code repository](https://github.com/onlinemantas/cstate) + +## License + +MIT © Mantas Vilčinskas diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..6884c5f --- /dev/null +++ b/config.yml @@ -0,0 +1,12 @@ +# General +title: Polar Galaxy +languageCode: en-US +baseURL: / +permalinks: + incidents: /incidents/:year/:month/:day/:slug/ +params: + # Extra customization + logo: /logo.png + description: We continuously monitor the status of our services and if there are any interruptions, a note will be posted here. Latency measurements work only on modern browsers and may not be 100% accurate. A ping below 1000ms is usually acceptable. + # Current state + announcement: Our Minecraft server is offline while we perform an overhaul of the entire server. Please keep an eye on our website or this status page for more updates. diff --git a/content/incident/dns-catastrophy.md b/content/incident/dns-catastrophy.md new file mode 100644 index 0000000..a379e6c --- /dev/null +++ b/content/incident/dns-catastrophy.md @@ -0,0 +1,24 @@ +--- +Title: Catastrophic DNS failure +Description: After moving from one Minecraft server to another, some DNS settings had unknowingly been tweaked which caused a complete outage for everything hosted on our domain. +Date: 2017-04-04T15:58:32 +Section: post +--- + +##### Post-mortem + +On Monday, we switched our Minecraft game server’s DNS records to point from the old box in Seattle to the one which is currently in Bristol. According to our host, SpartanHost, “the domain for [our DNS] expired so working on getting it transferred”. + +We did salvage our domain before our host made the realization that our nameservers went kaput. This should not happen in the forthcoming feature as we are now using [Netlify](https://www.netlify.com) (and supposedly Amazon) for our DNS and nameserver setup. + +##### Another update (2017-04-06T14:48:40) + +Most services back up. Some sites still may not work; we’re working on it. + +##### Update (2017-04-04T17:16:48) + +Switched to different nameserver and DNS provider. Services are recovering. + +##### Initial report (2017-04-04T15:58:32) + +A DNS change of some sort occurred that removed critical metadata after the server move. We switched name servers—which takes a while—but this should ensure smoother sailing forward. There is nothing else we can do at the moment—however—you can join the server with this IP for the time being: pgmc.mcs4.me diff --git a/layouts/incident/post.html b/layouts/incident/post.html new file mode 100644 index 0000000..593481a --- /dev/null +++ b/layouts/incident/post.html @@ -0,0 +1,8 @@ +
+

+ {{ .Title }} {{ if .Draft }}[DRAFT]{{ end }} +

+

Began on {{ .Date }} ({{ .ReadingTime }} min read)

+ + {{ .Content }} +
diff --git a/layouts/incident/single.html b/layouts/incident/single.html new file mode 100644 index 0000000..92ead19 --- /dev/null +++ b/layouts/incident/single.html @@ -0,0 +1,13 @@ +{{ partial "meta" . }} + + + +
+ ← Go back + +


+ + {{ .Render "post"}} +
+ +{{ partial "footer" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..014892d --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,278 @@ +{{ partial "meta" . }} + + +
+
+ + + +
+
+ + +
+ + +
+
+
+ Notifications + + Close + +
+
+ +
+

Users of modern browsers such as Chrome and Firefox get access to web notifications, a feature that shows alerts for things such as Facebook mentions, new emails, or in our case, status updates. These updates can be seen even if the user is not actively looking at this status page, however, the tab has to stay open.

+ +

Only some users may be able to use this feature. This feature does not work on mobile devices and is not fully tested.

+ +
+ + +
+ +

You have not enabled notifications.

+
+
+ + +
+
+ Checking status… + + +
+
+

{{ .Site.Params.announcement }}

+
+

+ + +
+
+ Forums Pinging… +
+
+ Website Pinging… +
+
+ Minecraft server +
+
+ +
+ Disclaimer + + +
+ +
+

Incident history



+ + {{ range first 10 .Data.Pages }} + {{ .Render "post" }} + {{ end }} + + +
+ + + +{{ partial "footer" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..62ea1b5 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ + + + diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..8237757 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,206 @@ + + + + + + + + + + {{ .Site.Title }} + + + + + + diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 0000000..d2fbbc0 --- /dev/null +++ b/public/index.xml @@ -0,0 +1,23 @@ + + + + Polar Galaxy Status + https://status.polargalaxy.com/index.xml + Recent content on Polar Galaxy Status + Hugo -- gohugo.io + en-us + Tue, 04 Apr 2017 00:00:00 +0000 + + + + Catastrophic DNS failure + https://status.polargalaxy.com/post/dns-catastrophy/ + Tue, 04 Apr 2017 00:00:00 +0000 + + https://status.polargalaxy.com/post/dns-catastrophy/ + <p>A DNS change of some sort occurred that removed critical metadata after the server move. We switched name servers—which takes a while—but this should ensure smoother sailing forward. There is nothing else we can do at the moment—however—you can join the server with this IP for the time being: pgmc.mcs4.me</p> + + + + + \ No newline at end of file diff --git a/public/post/index.xml b/public/post/index.xml new file mode 100644 index 0000000..0e18ee8 --- /dev/null +++ b/public/post/index.xml @@ -0,0 +1,23 @@ + + + + Posts on Polar Galaxy Status + https://status.polargalaxy.com/post/index.xml + Recent content in Posts on Polar Galaxy Status + Hugo -- gohugo.io + en-us + Tue, 04 Apr 2017 00:00:00 +0000 + + + + Catastrophic DNS failure + https://status.polargalaxy.com/post/dns-catastrophy/ + Tue, 04 Apr 2017 00:00:00 +0000 + + https://status.polargalaxy.com/post/dns-catastrophy/ + <p>A DNS change of some sort occurred that removed critical metadata after the server move. We switched name servers—which takes a while—but this should ensure smoother sailing forward. There is nothing else we can do at the moment—however—you can join the server with this IP for the time being: pgmc.mcs4.me</p> + + + + + \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..75dcb7e --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,21 @@ + + + + + https://status.polargalaxy.com/post/dns-catastrophy/ + 2017-04-04T00:00:00+00:00 + + + + https://status.polargalaxy.com/ + 2017-04-04T00:00:00+00:00 + 0 + + + + https://status.polargalaxy.com/post/ + 2017-04-04T00:00:00+00:00 + 0 + + + \ No newline at end of file diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..ad008ed Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/logo.png b/static/logo.png new file mode 100644 index 0000000..ab5cb02 Binary files /dev/null and b/static/logo.png differ -- cgit v1.2.3-70-g09d2