mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-10 02:28:45 +00:00
21 lines
618 B
YAML
21 lines
618 B
YAML
- name: allow-git-clients
|
|
action: ALLOW
|
|
expression:
|
|
all:
|
|
- >
|
|
(
|
|
userAgent.startsWith("git/") ||
|
|
userAgent.contains("libgit") ||
|
|
userAgent.startsWith("go-git") ||
|
|
userAgent.startsWith("JGit/") ||
|
|
userAgent.startsWith("JGit-")
|
|
)
|
|
- '"Accept" in headers'
|
|
- headers["Accept"] == "*/*"
|
|
- '"Cache-Control" in headers'
|
|
- headers["Cache-Control"] == "no-cache"
|
|
- '"Pragma" in headers'
|
|
- headers["Pragma"] == "no-cache"
|
|
- '"Accept-Encoding" in headers'
|
|
- headers["Accept-Encoding"].contains("gzip")
|