Commit graph

32 commits

Author SHA1 Message Date
6543
8519bba527
tryUpstream always use targetOpt generated by tryBranch 2022-11-12 19:11:19 +01:00
6543
3d9ffcf8d7
Merge branch 'std-http' into refactor_split-long-funcs 2022-11-12 01:08:24 +01:00
6543
24039fd18a
'%s' -> %q 2022-11-12 00:21:45 +01:00
6543
46a343c182
fix merge conflict relict 2022-11-11 23:57:38 +01:00
6543
9a44e26da7
set header as own func 2022-11-11 18:50:34 +01:00
6543
7526873049 [std-http] fix-header (#134)
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/134
2022-11-11 06:38:09 +01:00
6543
4117775cf0
fix raw serve 2022-11-11 05:33:38 +01:00
6543
7c45a420e4
less indirect 2022-11-08 00:05:27 +01:00
6543
f31c0b1659
refactor, dedup & pass-forward 2022-11-07 23:21:35 +01:00
6543
f96d11896f
minimize diff 2022-11-07 23:06:40 +01:00
6543
70871e77be
improve & refactor & return specific error pages 2022-11-07 22:47:03 +01:00
6543
40478215d0
handle serve raw case 2022-09-18 21:56:56 +02:00
6543
16a8d5d575
REMOVE fasthttp version 2022-08-28 20:54:17 +02:00
6543
32431b23bb
changes from main 2022-08-28 15:13:11 +02:00
6543
6fd9cbfafb
rm cache from fasthttp 2022-07-27 17:25:08 +02:00
6543
33298aa8ff
fasthttp 2022-07-27 15:48:48 +02:00
6543
a8afb372dd
more caching in-client 2022-07-27 15:39:46 +02:00
6543
61b959a93b
refactor client api 2022-07-21 21:53:22 +02:00
6543
8207586a48
just fix bcaceda711 2022-07-15 21:39:42 +02:00
6543
bcaceda711 dont cache if ContentLength greater fileCacheSizeLimit (#108)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/108
Reviewed-by: Otto <otto@codeberg.org>
2022-07-15 21:21:26 +02:00
6543
5411c96ef3 Tell fasthttp to not set "Content-Length: 0" on non cached content (#107)
fix #97

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/107
2022-07-15 21:06:05 +02:00
6543
4c6164ef05 Propagate ETag from gitea (#93)
close #15

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/93
2022-06-14 18:23:34 +02:00
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
6543
02bd942b04 Move gitea api calls in own "client" package (#78)
continue #75
close #16
- fix regression (from #34) _thanks to @crystal_
- create own gitea client package
- more logging
- add mock impl of CertDB

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: crystal <crystal@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/78
Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
2022-06-11 23:02:06 +02:00
6543
4267d54a63 refactor (2) (#34)
move forward with refactoring:
 - initial implementation of a smal "gitea client for fasthttp"
 - move constant into const.go

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/34
Reviewed-by: Otto Richter <otto@codeberg.org>
2022-04-20 23:42:01 +02:00
6543
5aae7c882f
Merge branch 'master' into refactoring 2021-12-05 22:50:46 +01:00
6543
a7bb3448a4
move more args of Upstream() to upstream Options 2021-12-05 19:53:23 +01:00
6543
e85f21ed2e
some renames 2021-12-05 18:20:38 +01:00
6543
77e39b2213
unexport if posible 2021-12-05 16:24:26 +01:00
6543
e6198e4ddd
start refactor Upstream func 2021-12-05 15:59:43 +01:00
6543
de4706bf58
rm 2rm 2021-12-05 15:53:46 +01:00
6543
38426c26db
move upstream into own package 2021-12-05 14:48:52 +01:00