-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfig.sample.lua
141 lines (139 loc) · 3.46 KB
/
config.sample.lua
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
local config = {}
----
-- the application uri
----
config.uri = "https://pkgs.alpinelinux.org"
----
-- Turbo listening port
-- can be overridden by setting the env var TURBO_PORT
----
config.port = 8080
----
-- set the branches,repos,archs you want to include
----
config.branches = {"latest-stable", "edge"}
config.repos = {"main", "community", "testing"}
config.archs = {"x86", "x86_64", "armhf"}
----
-- apk-tools index fields
----
config.index = {}
config.index.fields = {
P = "name",
V = "version",
T = "description",
U = "url",
L = "license",
A = "arch",
D = "depends",
C = "checksum",
S = "size",
I = "installed_size",
p = "provides",
i = "install_if",
o = "origin",
m = "maintainer",
t = "build_time",
c = "commit",
k = "provider_priority"
}
----
-- default settings
----
config.default = {}
config.default.branch = "edge"
config.default.arch = "x86_64"
----
-- location of the mirror on disk
----
config.mirror = "/media/mirror/alpine"
----
-- database settings
----
config.db = {}
-- initialize database (create tables)
config.db.init = false
-- path to the sqlite db
config.db.path = "db"
-- multi value db fields
config.db.fields = {"provides", "depends", "install_if"}
-- debug. print sql queries on console
config.db.debug = true
----
-- debug logging. true to enable to stdout.
----
config.logging = true
----
-- google recaptcha settings
----
config.rc = {}
config.rc.enabled = false
config.rc.sitekey = ""
config.rc.secret = ""
----
-- mailer settings
----
config.mail = {}
config.mail.enable = false
config.mail.from = "Alpine Package DB <pkgs@alpinelinux.org>"
config.mail.server = "mail.alpinelinux.org"
config.mail.domain = "pkgs.alpinelinux.org"
----
-- settings for pagers
----
config.pager = {}
-- how many entries in page
config.pager.limit = 50
-- the left and right offset of the pager
config.pager.offset = 3
----
---- settings for alpine git repo
----
config.git = {}
----
-- url to alpine git browser
----
config.git.commit = "https://git.alpinelinux.org/cgit/aports/commit/?id=%s"
----
-- url to the git repo directory
----
config.git.pkgpath = "https://git.alpinelinux.org/cgit/aports/tree/%s/%s?h=%s"
----
-- url to the build log
----
config.buildlog = "https://build.alpinelinux.org/buildlogs/build-%s-%s/%s/%s/%s-%s.log"
----
-- directory where views are stored
----
config.tpl = "views"
----
-- reverse proxy cache clear
----
config.cache = {}
-- enable or disable cache clear
config.cache.clear = true
-- path to the cache
-- if the path does not contain the name "cache" it will not work
config.cache.path = "/var/lib/nginx/cache"
-- the max depth to traverse (can be set by nginx cache settings)
config.cache.depth = 3
----
---- settings for anitya (https://release-monitoring.org)
----
config.anitya = {}
-- name of the distribution on anitya
config.anitya.distro = "Alpine"
-- base uri of the anitya restful api
config.anitya.api_uri = "https://release-monitoring.org/api"
-- number of http requests to send concurrently
config.anitya.api_concurrency = 20
-- uri of the anitya fedmsg/zeromq interface
config.anitya.fedmsg_uri = "tcp://release-monitoring.org:9940"
-- text of the message to be sent to maintainer of an outdated package
config.anitya.flag_message = [[
This package has been flagged automatically on the basis of notification from
Anitya <https://release-monitoring.org/>.
Please note that integration with Anitya is in experimental phase.
If the provided information is incorrect, please let us know on IRC
or alpine-infra@alpinelinux.org. Thanks!]]
return config