How to customise the maintenance page?
-
The NodeBB Community Forum maintenance page looks really cool:
Can we customise our own NodeBB maintenance page? If so, how can we do that?
-
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?
-