76 Commits

Author SHA1 Message Date
e6df2d2a2d strip Content-Length header to prevent duplicate 2025-09-16 04:46:55 -05:00
Vaxry
929d1ee80a subprojects: bump pistache 2025-06-19 12:11:59 +02:00
Vaxry
7c3bb4cbd9 headers: add csrf (#35) 2025-06-15 17:21:23 +02:00
catfromplan9
b606a21912 handler: Add ignore_fingerprinting to config (#33) 2025-05-13 23:26:32 +01:00
catfromplan9
02313315af handler: Add Max-Age to cookies (#32)
Add Max-Age to checkpoint-token cookie, so that the cookie persists
after the end of the current session.
2025-05-11 14:08:42 +02:00
Vaxry
5022e37917 handler: fix valid for taking ms 2025-05-10 21:24:24 +01:00
Vaxry
5afa967338 config: add token_valid_for 2025-05-10 19:50:22 +01:00
Vaxry
467d19d8c3 logging: improve action 2025-04-28 17:43:57 +01:00
Vaxry
fd9baeeab8 traffic: Add a new traffic logger 2025-04-28 17:29:28 +01:00
nyx
119da9c973 html: minor fixes to styling (#28)
* e

* minify

---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
2025-04-24 00:05:16 +02:00
Vaxry
88507ee893 nojs: add an explanation page 2025-04-22 14:16:56 +01:00
Vaxry
0c9a8930e1 index: minor fixes 2025-04-22 01:30:59 +01:00
Vaxry
6f77f5acb1 handler/stop: add no js solution option 2025-04-22 00:26:44 +01:00
Vaxry
a8ca03f1d6 config/handler: add host -> dest mappings 2025-04-21 22:51:42 +01:00
catfromplan9
5b2744584a handler: Handle any checkpoint resource, determine Content-Type with libmagic (#22)
* Handle any resource

* Determine Content-Type for static files with libmagic

---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
2025-04-21 21:28:31 +02:00
Vaxry
f199569ff8 core: rework request rules
fixes #21
2025-04-21 20:13:29 +01:00
catfromplan9
cd0fadf952 stop: Pass domain to HTML template (#27)
This passes along the domain being accessed as a variable, which is useful for those who choose to customize the HTML.
2025-04-21 20:40:49 +02:00
catfromplan9
563a25d7c2 handler: Add Www-Authenticate header, update validGitResource (#25)
* Add Www-Authenticate header

* Include git-receive-pack in validGitResource
2025-04-21 20:39:45 +02:00
Vaxry
74876b38b0 handler: allow /git-upload-pack for git hosts
ref #20
2025-04-21 02:14:36 +01:00
Vaxry
c60abae9bb core: don't crash on errors
fixes #19
2025-04-20 23:41:54 +01:00
Vaxry
9d3922d1d3 example: document git_host in the config
fixes #20
2025-04-20 23:25:33 +01:00
Vaxry
1c8625ffa4 docs: add nginx info
ref #18
2025-04-20 16:37:47 +01:00
Vaxry
06007e2a36 README: update git status 2025-04-17 15:10:23 +01:00
Vaxry
01998444c0 config: move async_proxy out of experimental and enable
tested for hours on my git forge, lgtm
2025-04-15 23:33:03 +01:00
L95Kdg8bw9U74mUBK9XqBjWlUrS9ksUN
3bfbe3598b html: Add conditionals for a no javascript environment (#15)
---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
2025-04-15 18:05:08 +02:00
Vaxry
5893be77c3 proxy: add experimental async mode 2025-04-15 16:55:58 +01:00
Vaxry
5d7f0bb322 proxy: drop text/event-stream requests
otherwise the proxy will die on a hang
2025-04-15 16:19:55 +01:00
Vaxry
f4b9bb1294 proxy: minor content encoding fixes 2025-04-15 15:38:15 +01:00
Vaxry
7fa7d5f7c0 handler: make a single client instance 2025-04-15 15:26:08 +01:00
Vaxry
9460795c92 handler: remove old commit 2025-04-15 15:22:27 +01:00
Vaxry
11e00b9c1c config: fix case-sensitive actions 2025-04-15 15:03:11 +01:00
Vaxry
55d136c760 repo: use system re2 2025-04-15 14:59:29 +01:00
Vaxry
c43f6bd919 cmakelists: fix include dirs 2025-04-15 14:56:57 +01:00
Vaxry
871284672c rules: add exclude actions 2025-04-15 14:55:12 +01:00
Vaxry
50fbc7f5ac rules: add support for resource excludes 2025-04-15 14:49:29 +01:00
Vaxry
15689ca20a handler: gather real ip for rules, check X-Real-IP 2025-04-15 14:38:12 +01:00
Vaxry
a0577efed7 proxy: use cookies() for cookie transfer
ref #14
2025-04-15 13:25:38 +01:00
Vaxry
321d1eb326 core: add IP-range based rules for permissions and fifficulty 2025-04-15 01:49:56 +01:00
Vaxry
1bdc60b8d2 fs: dedup functions, fix absolute paths in cfg
fixes #2

closes #12
2025-04-14 21:03:10 +01:00
Vaxry
ab01c2c469 pistache: bump dep 2025-04-14 15:59:07 +01:00
Vaxry
7e1a99a691 challenge: make challenges expire after 10 minutes
fixes #10
2025-04-14 13:26:32 +01:00
Vaxry
4f019a97c0 proxy: don't pass content-length header
fixes #7
2025-04-14 01:44:44 +01:00
L95Kdg8bw9U74mUBK9XqBjWlUrS9ksUN
dd87fda183 html: Eliminate strings in Javascript (#5)
eliminate strings in hasher for 15kh/s speed improvement

---------

Co-authored-by: Vaxry <vaxry@vaxry.net>
2025-04-14 01:20:02 +02:00
Vaxry
067c993317 token: set topmost domain as owner of cookie
ref #4
2025-04-14 00:16:56 +01:00
Vaxry
2c757c449a handler: restore static page html 2025-04-14 00:10:26 +01:00
Vaxry
e7a35794cd proxy: pass query parameters
fixes #3
2025-04-13 23:39:15 +01:00
Vaxry
305fb11b46 token: add a Domain to the cookie
fixes #4
2025-04-13 23:37:22 +01:00
Vaxry
4e307c314b handler: bring back the host header
also bump pistache to add a fix for host 400, fixes #1
2025-04-13 21:59:13 +01:00
Vaxry
f8c234141f token: fix missing include 2025-04-13 21:25:36 +01:00
Vaxry
c3975b27f1 core: move away from db towards hash-based auth 2025-04-13 21:19:05 +01:00