Nginx module I am talking about: https://github.com/kyprizel/testcookie-nginx-module

Path 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

That's awesome thank you!

Reply to this note

Please Login to reply.

Discussion

No replies yet.