Skip to content

Instantly share code, notes, and snippets.

@micuat
Created June 7, 2023 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micuat/b74a8a394c900eaab0e23370f4d0ff8a to your computer and use it in GitHub Desktop.
Save micuat/b74a8a394c900eaab0e23370f4d0ff8a to your computer and use it in GitHub Desktop.

live test: https://livelab.glitches.me/

$ sudo nano /etc/nginx/sites-available/livelab.glitches.me 
server {
    root /usr/share/nginx/livelab.glitches.me;
    index index.html index.htm;

    error_page 502 /502.html;
    location /502.html {
    }
...
$ cd /usr/share/nginx/
$ sudo mkdir livelab.glitches.me
$ sudo chown naoto livelab.glitches.me/
$ cd livelab.glitches.me/
$ nano 502.html
<html>
<head>
  <title>oh no</title>
</heda>
<body style="font-size:1.5em; font-family: helvetica, arial">
we are experiencing problems with some sort of memory leak
and are trying to solve... 
please let us know (discord/email/etc.links here...)
if you see it down so we can restart
</body>
</html>
$ sudo systemctl restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment