How to customise the maintenance page?
-
I did a bit of reading on this. You just add this to your Nginx server block:
error_page 502 /maintenance.html; location = /maintenance.html { root /usr/share/nginx/html; internal; }
Then create
/usr/share/nginx/html/maintenance.html
and put whatever markup you want inside it. -
Woops, I forgot to respond to this, glad you figured it out.
If you like the design, I'm more than happy to share the code so you can customise it for your own forums. There's a catch - I'll only share it if you figure out the small easter egg on that page, try to find it next time we do maintenance
-
If you like the design, I'm more than happy to share the code so you can customise it for your own forums
That'd be great! Thanks
OK, now for some Easter egg hunting... haha
-
If nobody has figured out the Easter egg in a week I won't be mean and will post a gist
But seriously, 0.8 just got out so expect a bunch of updates as we usually find one or two bugs haha (I have two major ones I'm fixing for Monday)
EDIT: @henrywright that would be a cool addition to our docs BTW, if you were interested in adding a howto for 502 pages, probably belongs in the nginx section
-
@psychobunny actually I did look for an article on this in the docs before posting this topic but couldn't find anything so an article would be useful I'm sure of it! Will update the docs right after I've done it myself so I can outline the steps I took.
-
@psychobunny I know, i know! If you click on the inscription 502 - it will jump.
-
Hmm I'll see if I can so something with apache in a similar way. This seems like something nodebb can expand on
-
@psychobunny I think I got it?
-
-
lmao @henrywright congrats. It wasn't that awesome of an easter egg but glad you found the secret message haha!
The NodeBB Community's 502 page
The NodeBB Community's 502 page. GitHub Gist: instantly share code, notes, and snippets.
Gist (gist.github.com)
Excuse the lowsy coding, IIRC I had a non-wager bet with @julian about being able to build a cool 502 page in under 10 minutes
EDIT:
I have two major ones I'm fixing for Monday
I only took down the forum a few times today for seconds tops, so seriously, how many times did you spam f5 today? XD