Simple but pretty unicorn rainbow error pages for webserver 40x/50x HTTP errors
Go to file
Adam Piontek 77c68ef599 increment version & update README partway for caddy 2021-11-25 14:31:32 -05:00
.github initial commit 2021-08-02 17:05:36 -04:00
configuration updated more deps, major versions 2021-11-25 14:30:01 -05:00
dist including 0.0.2 2021-08-03 production build 2021-08-03 16:18:21 -04:00
src fixed asset paths 2021-08-02 17:48:22 -04:00
.babelrc initial commit 2021-08-02 17:05:36 -04:00
.eslintrc initial commit 2021-08-02 17:05:36 -04:00
.gitignore initial commit 2021-08-02 17:05:36 -04:00
.prettierrc initial commit 2021-08-02 17:05:36 -04:00
.sasslintrc initial commit 2021-08-02 17:05:36 -04:00
.travis.yml initial commit 2021-08-02 17:05:36 -04:00
CHANGELOG.md initial commit 2021-08-02 17:05:36 -04:00
LICENSE initial commit 2021-08-02 17:05:36 -04:00
README.md increment version & update README partway for caddy 2021-11-25 14:31:32 -05:00
SECURITY.md initial commit 2021-08-02 17:05:36 -04:00
package-lock.json updated more deps, major versions 2021-11-25 14:30:01 -05:00
package.json increment version & update README partway for caddy 2021-11-25 14:31:32 -05:00
postcss.config.js initial commit 2021-08-02 17:05:36 -04:00
svgo.config.js initial commit 2021-08-02 17:05:36 -04:00
tailwind.config.js initial commit 2021-08-02 17:05:36 -04:00
webpack.config.js fixed asset paths 2021-08-02 17:48:22 -04:00

README.md

73k.us custom rainbow error pages (40x/50x)

Based off frontend-webpack-boilerplate with TailwindCSS added.

Builds html & css that can be used as custom error page templates with caddy.

NOTE

After production build, optionally remove the empty, 0-byte app.js script tags from the built files, just to optimize things further.

caddy example

This could probably be optimized but it's working:

# Custom Unicorn Rainbow error pages
location /err_css {
  root /var/www/err;
  autoindex off;
  expires max;
}
location /err_images {
  root /var/www/err;
  autoindex off;
  expires max;
}
error_page 403 404 /40x.html;
location = /40x.html {
  root /var/www/err;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
  root /var/www/err;
}