Commit graph

36 commits

Author SHA1 Message Date
6543
f13feec8bf
unwind tryBranch into own func 2022-11-12 02:54:56 +01:00
6543
3d9ffcf8d7
Merge branch 'std-http' into refactor_split-long-funcs 2022-11-12 01:08:24 +01:00
6543
834e8544f0
use message 2022-11-12 00:43:09 +01:00
6543
24039fd18a
'%s' -> %q 2022-11-12 00:21:45 +01:00
6543
6bc79e5ebf
wip 2022-11-11 19:03:17 +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
218b52094e
more log 2022-11-07 23:01:31 +01:00
6543
70871e77be
improve & refactor & return specific error pages 2022-11-07 22:47:03 +01:00
6543
60aefb4bf5
rm 2022-11-07 21:34:23 +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
51ca74fc11
more string 2022-08-28 16:21:37 +02:00
6543
662d76386c
more string 2022-08-28 15:33:10 +02:00
6543
e1c78d6069
Merge branch 'main' into std-http 2022-08-28 14:35:27 +02:00
Gusted
1ae50735a1 Add host to handler logging (#123)
- Add the host to the Handler's logging fields, so you don't just see the path, but also which domain was being requested.

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/123
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-08-13 18:03:31 +02:00
Gusted
876a53d9a2 Improve logging (#116)
- Actually log useful information at their respective log level.
- Add logs in hot-paths to be able to deep-dive and debug specific requests (see server/handler.go)
- Add more information to existing fields(e.g. the host that the user is visiting, this was noted by @fnetX).

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/116
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-08-12 05:06:26 +02:00
6543
6fd9cbfafb
rm cache from fasthttp 2022-07-27 17:25:08 +02:00
6543
a8afb372dd
more caching in-client 2022-07-27 15:39:46 +02:00
6543
6f56fa97a1
start ... 2022-07-15 18:10:41 +02:00
Gary Wang
9076bc3f75 Support access branch that contains slash character (#102)
So we can access branch that contain slash like `branch/name` with `username.codeberg.page/repo/@branch~name/`.

Branch name cannot contain `~` character but it can be in a HTTP URL, so replace the `~` from URL to `/` could be a valid solution to me.

Resolve #101

Co-authored-by: Gary Wang <wzc782970009@gmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/102
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Gary Wang <blumia@noreply.codeberg.org>
Co-committed-by: Gary Wang <blumia@noreply.codeberg.org>
2022-07-08 13:39:24 +02:00
6543
6dedd55eb3 Release via CI (#94)
* release via CI
* general CI improvements

close #76, close #92

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/94
2022-06-14 20:35:11 +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
bb8eb32ee2 make debug messages unique 2022-06-10 15:29:47 +02:00
Otto Richter
a2c5376d9a Fix CORS / add Access-Control-Allow-Origin * to all methods (#69)
The header is not only necessary on the OPTIONS request, but on any method, so I removed the condition.

Serving any workadventure map was broken BTW. We should have tested this :-(

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/69
Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
Co-authored-by: Otto Richter <otto@codeberg.org>
Co-committed-by: Otto Richter <otto@codeberg.org>
2022-04-10 18:11:00 +02:00
6543
f5d0dc7447 Add pipeline (#65)
close #54

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/65
Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
2022-03-27 21:54:06 +02:00
6543
a7bb3448a4
move more args of Upstream() to upstream Options 2021-12-05 19:53:23 +01:00
6543
26a199053b
lint: rename 2021-12-05 18:20:40 +01:00
6543
0374e95d23
make tryUpstream independent func 2021-12-05 18:20:39 +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
ccada3e6df
split cert func to related packages 2021-12-05 15:21:05 +01:00
6543
b3830e979c
inject all cache 2021-12-05 15:02:44 +01:00
6543
38426c26db
move upstream into own package 2021-12-05 14:48:52 +01:00
6543
690879440a
move helper func in related packages 2021-12-05 14:48:47 +01:00
6543
35e08d2252
remove EnvOr use flags 2021-12-05 14:48:45 +01:00
6543
bdc2d0c259
dont access global vars inject them 2021-12-05 14:48:41 +01:00