pages-server/server
video-prize-ranch 974229681f Initial redirects implementation (#148)
Adds basic support for `_redirects` files. It supports a subset of what IPFS supports: https://docs.ipfs.tech/how-to/websites-on-ipfs/redirects-and-custom-404s/

Example:
```
/redirect https://example.com/ 301
/another-redirect /page 301
/302  https://example.com/  302
/app/* /index.html 200
/articles/* /posts/:splat 301
```
301 redirect: https://video-prize-ranch.localhost.mock.directory:4430/redirect
SPA rewrite: https://video-prize-ranch.localhost.mock.directory:4430/app/path/path
Catch-all with splat: https://video-prize-ranch.localhost.mock.directory:4430/articles/path/path

Closes #46

Co-authored-by: video-prize-ranch <cb.8a3w5@simplelogin.co>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/148
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: video-prize-ranch <video-prize-ranch@noreply.codeberg.org>
Co-committed-by: video-prize-ranch <video-prize-ranch@noreply.codeberg.org>
2023-03-30 21:36:31 +00:00
..
cache make mem cache an interface and inject 2021-12-05 14:48:51 +01:00
certificates Handle Relative Symlinks (#205) 2023-03-11 05:07:17 +00:00
context Refactor split long functions (#135) 2022-11-12 20:43:44 +01:00
database Fix certificate renewal (#209) 2023-03-20 22:57:26 +00:00
dns Allow to define default branches (#125) 2023-02-14 03:03:00 +00:00
gitea Handle Relative Symlinks (#205) 2023-03-11 05:07:17 +00:00
handler Initial redirects implementation (#148) 2023-03-30 21:36:31 +00:00
upstream Initial redirects implementation (#148) 2023-03-30 21:36:31 +00:00
utils switch to std http implementation instead of fasthttp (#106) 2022-11-12 20:37:20 +01:00
version Release via CI (#94) 2022-06-14 20:35:11 +02:00