Custom nginx error page

Open
#686 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
nginx

Research direction

Start by locating TinyPilot's nginx configuration and the page assets used while the backend is unavailable. Read how the current 502 response is handled and check the nginx error_page directive documentation. Done means opening TinyPilot during boot shows a custom message explaining that it is still booting instead of the generic nginx 502 page.

Written by the indexing model from the issue text.

Description

enhancement medium

If you open the page in the browser after TinyPilot has booted but before the backend serves, you see the generic ngnix 502 status page.

It would be cool to serve a custom page that tells you something like: “TinyPilot is still booting, hang tight, we’ll be right there”. This can be done via the error_page directive in nginx.

Dominant language
Python
Stars
3.5k
Forks
291
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tiny-pilot/tinypilot

All issues in tiny-pilot/tinypilot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.