pages-server/server
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
..
cache make mem cache an interface and inject 2021-12-05 14:48:51 +01:00
certificates Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
database Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
dns unexport if posible 2021-12-05 16:24:26 +01:00
gitea Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
upstream implement custom 404 pages (#81) 2022-06-12 03:50:00 +02:00
utils move more args of Upstream() to upstream Options 2021-12-05 19:53:23 +01:00
handler_test.go Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
handler.go Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00
helpers.go move helper func in related packages 2021-12-05 14:48:47 +01:00
setup.go Change MaxConnsPerIP to 0 to fix too many connections from HAProxy (#77) 2022-05-14 22:29:54 +02:00
try.go Move gitea api calls in own "client" package (#78) 2022-06-11 23:02:06 +02:00