Skhron on Nostr: Nginx module I am talking about: https://github.com/kyprizel/testcookie-nginx-module ...
Nginx module I am talking about:
https://github.com/kyprizel/testcookie-nginx-modulePath are relevant to gitea/forgejo, but I guess it is similar for CGit
```
map $uri $giteach_testcookie_pass {
default 0;
"~*^/api/" 1;
"~*^/assets/" 1;
"~*^/avatars/" 1;
"~*^/\S+/\S+\.git/" 1;
"~*^/\S+/\S+/raw/branch/" 1;
}
```
and use `testcookie_pass $giteach_testcookie_pass;` to selectively disable testcookie in a `location / { ... }` block
Published at
2025-03-20 16:59:57Event JSON
{
"id": "000000f36c6458692039e52281c1aee59df90b9d0f29ab89bec4d567726e15ed",
"pubkey": "2641c5060e4eec82089fdb2c9eb84714660fddf7c23a01d731311481983f0175",
"created_at": 1742489997,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58"
],
[
"e",
"ccf42567501c493df17813b7de717bbcd065b0b6da080cdb125356ff7fec16a5",
"wss://relay.momostr.pink/",
"root"
],
[
"e",
"ae216f02ebdf0bbda8a0aafb3d0a866fc58c8272b5fc55aa759916a22fe06799",
"wss://relay.primal.net/",
"reply",
"036533caa872376946d4e4fdea4c1a0441eda38ca2d9d9417bb36006cbaabf58"
],
[
"nonce",
"13835058055283305310",
"24"
]
],
"content": "Nginx module I am talking about: https://github.com/kyprizel/testcookie-nginx-module\nPath are relevant to gitea/forgejo, but I guess it is similar for CGit\n\n```\nmap $uri $giteach_testcookie_pass {\n\tdefault 0;\n\t\"~*^/api/\" 1;\n\t\"~*^/assets/\" 1;\n\t\"~*^/avatars/\" 1;\n\t\"~*^/\\S+/\\S+\\.git/\" 1;\n\t\"~*^/\\S+/\\S+/raw/branch/\" 1;\n}\n```\n\nand use `testcookie_pass $giteach_testcookie_pass;` to selectively disable testcookie in a `location / { ... }` block",
"sig": "25b5aec24d4f63724d54a36618f18f60221ef37c14d39be892523fb8ef2c56babfaa92cb9c215fcd89eaaf16985c2485f4b31535e99daf611fd30c0bad223306"
}