pages-server/server/upstream
crystal 38fb28f84f implement custom 404 pages (#81)
solves #56.

- The expected filename is `404.html`, like GitHub Pages
- Each repo/branch can have one `404.html` file at it's root
- If a repo does not have a `pages` branch, the 404.html file from the `pages` repository is used
- You get status code 404 (unless you request /404.html which returns 200)
- The error page is cached

---
close #56

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/81
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: crystal <crystal@noreply.codeberg.org>
Co-committed-by: crystal <crystal@noreply.codeberg.org>
2022-06-12 03:50:00 +02:00
..
const.go refactor (2) (#34) 2022-04-20 23:42:01 +02:00
domains.go Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
helper.go Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
upstream.go implement custom 404 pages (#81) 2022-06-12 03:50:00 +02:00