generated from block/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcachew.hcl
More file actions
61 lines (48 loc) · 1 KB
/
cachew.hcl
File metadata and controls
61 lines (48 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Artifactory caching proxy strategy
# strategy artifactory "example.jfrog.io" {
# target = "https://example.jfrog.io"
# }
state = "./state"
url = "http://127.0.0.1:8080"
log {
level = "debug"
}
opa {
policy = <<EOF
package cachew.authz
default allow := false
allow if startswith(input.remote_addr, "127.0.0.1:")
allow if not input.path[0] in {"api", "admin"}
EOF
}
# github-app {
# app-id = "app-id-value"
# private-key-path = "private-key-path-value"
# installations = { "myorg" : "installation-id" }
# }
metrics {}
strategy git {
#bundle-interval = "24h"
snapshot-interval = "1h"
repack-interval = "1h"
}
strategy host "https://ghcr.io" {
headers = {
"Authorization": "Bearer QQ=="
}
}
strategy host "https://w3.org" {}
strategy github-releases {
token = "${GITHUB_TOKEN}"
private-orgs = ["alecthomas"]
}
strategy gomod {
proxy = "https://proxy.golang.org"
}
strategy hermit { }
strategy proxy { }
cache disk {
limit-mb = 250000
max-ttl = "8h"
}
metadata memory {}