Commit graph

204 commits

Author SHA1 Message Date
6543
7c45a420e4
less indirect 2022-11-08 00:05:27 +01:00
6543
b2323ee8a5
Add editorconfig 2022-11-07 23:49:48 +01:00
6543
de98ed5656
fix cache 2022-11-07 23:43:20 +01:00
6543
1438699b73
nice error pages 2022-11-07 23:37:52 +01:00
6543
b473639103
nit 2022-11-07 23:22:32 +01:00
6543
f31c0b1659
refactor, dedup & pass-forward 2022-11-07 23:21:35 +01:00
6543
0339a52efc
Merge branch 'main' into std-http 2022-11-07 23:10:18 +01:00
6543
91b54bef29
add newline 2022-11-07 23:09:41 +01:00
6543
f96d11896f
minimize diff 2022-11-07 23:06:40 +01:00
6543
218b52094e
more log 2022-11-07 23:01:31 +01:00
6543
a03ea956d5
more log 2022-11-07 22:49:46 +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
fe444aa2c0
Merge branch 'main' into std-http 2022-11-07 16:30:46 +01:00
Gusted
bf9a08e1fd Fatal on ACME Client creation failure (#133)
- For production(*cough* Codeberg *cough*), it's important to not use
mock certs. So fail right from the start if this is the case and not try
to "handle it gracefully", as it would break production.
- Resolves #131

CC @6543

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/133
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-11-07 16:27:37 +01:00
Gusted
ea723a86d2 Fatal on ACME Client creation failure (#132)
- For production(*cough* Codeberg *cough*), it's important to not use
mock certs. So fail right from the start if this is the case and not try
to "handle it gracefully", as it would break production.
- Resolves #131

CC @momar @6543

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/132
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-11-07 15:52:44 +01:00
6543
5d486ab46f
Merge branch 'main' into std-http 2022-10-10 23:33:26 +02:00
6543
b9e9f14209 use codeberg.org/6543/docker-images/golang_just
Signed-off-by: 6543 <6543@obermui.de>
2022-10-10 23:27:33 +02:00
6543
df2228b6d5 ci: let tag run pipeline 2022-10-10 23:25:21 +02:00
6543
af49f9a8f6
fix 2022-09-19 12:15:14 +02:00
6543
94cb43508c
magic 2022-09-18 22:41:52 +02:00
6543
4a2a14272b
break into own func and fix 2022-09-18 22:13:50 +02:00
6543
40478215d0
handle serve raw case 2022-09-18 21:56:56 +02:00
6543
8dac935cd8
wip: add fileCache back 2022-09-18 21:02:55 +02:00
6543
9626d3a8a0
add debugging from 091e6c8ed9 back 2022-09-18 19:50:41 +02:00
6543
bcb7d773d1
readd err debug 2022-09-18 19:47:20 +02:00
Gusted
091e6c8ed9 Add explicit logging in GetBranchTimestamp (#130)
- Logs are currently indicating that it's returning `nil` in valid
scenarios, therefor this patch adds extra logging in this code to
better understand what it is doing in this function.

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/130
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-09-18 16:13:27 +02:00
Gusted
2a730b2439 Update README (#128)
- Update readme accordingly to the 876a53d9a2

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/128
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-09-13 23:26:45 +02:00
Gusted
8f2699407d Make verbose checks in tryBranch (#127)
- It's likely that the tryBranch is returning false when it should be returning true, make these logs more verbose so they show up on production logs.

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/127
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <gusted@noreply.codeberg.org>
Co-committed-by: Gusted <gusted@noreply.codeberg.org>
2022-09-13 23:06:31 +02:00
6543
fac052f052
add gzip support 2022-08-28 21:39:34 +02:00
6543
16a8d5d575
REMOVE fasthttp version 2022-08-28 20:54:17 +02:00
6543
ea13ac0e92
fix lint issues and tests 2022-08-28 16:53:30 +02:00
6543
dc023b81a8
first working 2022-08-28 16:36:56 +02:00
6543
8a5a3cee5d
fix unit tests 2022-08-28 16:29:28 +02:00
6543
460c0a2db4
first working build 2022-08-28 16:26:38 +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
32431b23bb
changes from main 2022-08-28 15:13:11 +02:00
6543
9af9eceb41
port upstream 2022-08-28 15:09:54 +02:00
6543
e35d5f7cc7
fix unit test 2022-08-28 14:43:15 +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
6543
392c6ae452
full-name 2022-08-12 07:02:24 +02:00
6543
88a217fbe6
docker images must be lowercase 2022-08-12 06:55:35 +02:00
6543
dc41a4caf4 Add Support to Follow Symlinks and LFS (#114)
close #79
close #80
close #91

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/114
2022-08-12 06:40:12 +02:00
6543
519259f459
publish docker images on tag and push to main (#122)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/122
2022-08-12 06:32:21 +02:00
Gusted
f72bbfd85f Fix just dev (#121)
- Use the correct log level command, since 876a53d9a2

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/121
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:24:05 +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
e06900d5e5
fix lint issue 2022-08-08 15:25:31 +02:00
6543
5fa449d456
update sdk 2022-07-29 12:52:23 +02:00