Commit graph

130 commits

Author SHA1 Message Date
6543
8519bba527
tryUpstream always use targetOpt generated by tryBranch 2022-11-12 19:11:19 +01:00
6543
658de3956e
sort import 2022-11-12 14:10:04 +01:00
6543
8e6c0c6c9f
deduplicate 2022-11-12 14:08:08 +01:00
6543
5f2f073a73
deduplicate 2022-11-12 13:10:07 +01:00
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
ce58fa24a0
fix misspell and more log info 2022-11-12 00:56:30 +01:00
6543
eeaff6de2c
explain why we cache symlinc and not content 2022-11-12 00:54:02 +01:00
6543
c6326c88af
cache write error does not care what content is stored 2022-11-12 00:49:47 +01:00
6543
834e8544f0
use message 2022-11-12 00:43:09 +01:00
6543
1bbb1b4a10
fix lint issue 2022-11-12 00:40:18 +01:00
6543
da84be2352
writeCacheReader: rename all vars to use full redable words 2022-11-12 00:38:21 +01:00
6543
cf78f5fda2
format code 2022-11-12 00:32:32 +01:00
6543
ba00db990b
better code comment and move val into its own const 2022-11-12 00:29:45 +01:00
6543
9df4a50e10
rm dead code and add nice code comment 2022-11-12 00:27:40 +01:00
6543
24039fd18a
'%s' -> %q 2022-11-12 00:21:45 +01:00
6543
81bc8fec08
'%s' -> %q 2022-11-12 00:20:19 +01:00
6543
ae610d301a
code format 2022-11-12 00:15:06 +01:00
6543
cba996978e
nit picking of legacy 2022-11-12 00:08:56 +01:00
6543
46a343c182
fix merge conflict relict 2022-11-11 23:57:38 +01:00
6543
6bc79e5ebf
wip 2022-11-11 19:03:17 +01:00
6543
9a44e26da7
set header as own func 2022-11-11 18:50:34 +01:00
6543
8c3b74518c
cache branch not found and only log error if error != NotFound 2022-11-11 15:27:18 +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
63d0b8d320
more logging 2022-11-08 00:15:09 +01:00
6543
026ef06afe
fix lint issue 2022-11-08 00:06:10 +01:00
6543
7c45a420e4
less indirect 2022-11-08 00:05:27 +01:00
6543
de98ed5656
fix cache 2022-11-07 23:43:20 +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
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
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
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
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