aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_500.py
AgeCommit message (Collapse)Author
2018-11-21Add license (mostly GNU AGPLv3+)Teddy Wing
License the software with the GNU AGPLv3+ with the exception of the 'aquatic-prime' and 'paddle' libraries and 'aquatic-prime' binary, which are licensed under the GNU GPLv3+.
2018-11-13internal_error.html: Fix logo imageTeddy Wing
Hadn't tested this when I made it. Was outputting a formatted byte string instead of the plain base64, which resulted in `b'BASE_64'` being inserted. Output the real base64 to get the image to decode properly.
2018-11-13Add 500 error page with generatorTeddy Wing
Base structure copied from `404.html`. Python script based on the `generate_homebrew_formula.py` script in the main DomeKey repository. The filename comes from the Apache server configuration. Generate the 500 page because we can't rely on dependencies. This gets the CSS and logo and includes them inline in the HTML page. Thanks to this answer for explaining how to get a byte string from a file to send to the base64 encoder: https://stackoverflow.com/questions/45482272/typeerror-a-bytes-like-object-is-required-not-str-python-2-to-3/45482834#45482834