forked from y-saiki1/goproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.json
58 lines (58 loc) · 1.22 KB
/
example-config.json
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
{
"addr": ":8080",
"storage": "./cache",
"log_level": "trace",
"default_go_proxy_url": "http://proxy.golang.org",
"modules": [
{
"name": "example.lstv.dev",
"source": null
},
{
"name": "example.lstv.dev/module-name-1",
"source": "gitlab.com",
"source_params": {
"project_id": 1,
"dir": "component1",
"tag_prefix": "component1-",
"version_dir": false
}
},
{
"name": "example.lstv.dev/module-name-2",
"source": "gitlab.com",
"source_params": {
"project_id": 1,
"dir": "component2",
"tag_prefix": "component2-",
"version_dir": false
}
}
],
"downloads": {
"component1-specification": {
"mode": "generic-packages",
"source": "gitlab.com",
"source_params": {
"project_id": 1,
"disable_architecture": true,
"file_extension": ".yaml"
}
}
},
"sources": [
{
"name": "gitlab.com",
"type": "gitlab",
"url": "https://gitlab.com",
"auth": "this-is-auth-token",
"allow_insecure_tls": false
}
],
"versions": {
"go": "1.18.0",
"modules": [
"example.com/my-favorite-module"
]
}
}