config.defaults 4.85 KB
Newer Older
1
[database]
2
backend = mysql
3
4
host = localhost
socket = /var/run/mysqld/mysqld.sock
5
;port = 3306
6
7
name = AUR
user = aur
8
;password = aur
9
10
11
12

[options]
username_min_len = 3
username_max_len = 16
13
passwd_min_len = 8
14
default_lang = en
Mark Weiman's avatar
Mark Weiman committed
15
default_timezone = UTC
16
17
18
19
20
sql_debug = 0
login_timeout = 7200
persistent_cookie_timeout = 2592000
max_filesize_uncompressed = 8388608
disable_http_login = 1
21
aur_location = https://aur.archlinux.org
22
git_clone_uri_anon = https://aur.archlinux.org/%s.git
23
git_clone_uri_priv = ssh://aur@aur.archlinux.org/%s.git
24
max_rpc_results = 5000
25
max_search_results = 2500
26
max_depends = 1000
27
aur_request_ml = aur-requests@lists.archlinux.org
28
request_idle_time = 1209600
29
request_archive_time = 15552000
30
auto_orphan_age = 15552000
31
auto_delete_age = 86400
32
33
34
source_file_uri = /cgit/aur.git/tree/%s?h=%s
log_uri = /cgit/aur.git/log/?h=%s
commit_uri = /cgit/aur.git/commit/?h=%s&id=%s
35
snapshot_uri = /cgit/aur.git/snapshot/%s.tar.gz
Lukas Fleischer's avatar
Lukas Fleischer committed
36
enable-maintenance = 1
37
maintenance-exceptions = 127.0.0.1
38
39
render-comment-cmd = /usr/bin/aurweb-rendercomment
localedir = /srv/http/aurweb/web/locale/
Kevin Morris's avatar
Kevin Morris committed
40
41
; memcache, apc, or redis
; memcache/apc are supported in PHP, redis is supported in Python.
42
cache = none
43
cache_pkginfo_ttl = 86400
44
memcache_servers = 127.0.0.1:11211
Kevin Morris's avatar
Kevin Morris committed
45
salt_rounds = 12
Kevin Morris's avatar
Kevin Morris committed
46
redis_address = redis://localhost
47
48
; Toggles traceback display in templates/errors/500.html.
traceback = 0
49

Florian Pritz's avatar
Florian Pritz committed
50
51
52
[ratelimit]
request_limit = 4000
window_length = 86400
Kevin Morris's avatar
Kevin Morris committed
53
54
55
56
57
; Force-utilize cache for ratelimiting. In FastAPI, forced cache (1)
; will cause the ratelimit path to use a real or fake Redis instance
; depending on the configured options.cache setting. Otherwise,
; cache will be ignored and the database will be used.
cache = 1
Florian Pritz's avatar
Florian Pritz committed
58

59
[notifications]
60
notify-cmd = /usr/bin/aurweb-notify
61
62
sendmail =
smtp-server = localhost
63
64
65
66
67
smtp-port = 25
smtp-use-ssl = 0
smtp-use-starttls = 0
smtp-user =
smtp-password =
68
smtp-timeout = 60
69
70
sender = notify@aur.archlinux.org
reply-to = noreply@aur.archlinux.org
71
72
73
74
75
76

; Gitlab instance base URL. We use this instance to report
; server errors in the form of confidential issues (see error-project).
gitlab-instance = https://gitlab.archlinux.org

; Project URI which will received confidential issues about
77
; various server details like uncaught exceptions.
78
79
80
81
82
83
84
85
86
87
88
; Errors reported will be filed using the 'triage' label, and so
; the 'triage' label must exist in any project URI given.
;
; - must be a valid project URI on notifications.error-repository
; - must contain a 'triage' label
;
error-project = set-me

; Gitlab access token with API privileges to post
; notifications.error-project issues.
error-token = set-me
89

90
91
92
93
94
[fingerprints]
Ed25519 = SHA256:HQ03dn6EasJHNDlt51KpQpFkT3yBX83x7BoIkA1iv2k
ECDSA = SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
RSA = SHA256:Ju+yWiMb/2O+gKQ9RJCDqvRg7l+Q95KFAeqM5sr6l2s

95
[auth]
96
97
98
; For U2F key prefixes, see the following documentation from openssh:
; https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.u2f
valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519 sk-ecdsa-sha2-nistp256@openssh.com sk-ecdsa-sha2-nistp256-cert-v01@openssh.com sk-ssh-ed25519@openssh.com sk-ssh-ed25519-cert-v01@openssh.com
99
username-regex = [a-zA-Z0-9]+[.\-_]?[a-zA-Z0-9]+$
100
git-serve-cmd = /usr/bin/aurweb-git-serve
101
ssh-options = restrict
102

103
104
105
106
107
108
109
110
[sso]
openid_configuration =
client_id =
client_secret =

[fastapi]
session_secret =

111
[serve]
112
repo-path = /srv/http/aurweb/aur.git/
113
114
repo-regex = [a-z0-9][a-z0-9.+_-]*$
git-shell-cmd = /usr/bin/git-shell
115
git-update-cmd = /usr/bin/aurweb-git-update
116
ssh-cmdline = ssh aur@aur.archlinux.org
Lukas Fleischer's avatar
Lukas Fleischer committed
117

118
119
120
[update]
max-blob-size = 256000

Lukas Fleischer's avatar
Lukas Fleischer committed
121
[aurblup]
Lukas Fleischer's avatar
Lukas Fleischer committed
122
db-path = /srv/http/aurweb/aurblup/
Lukas Fleischer's avatar
Lukas Fleischer committed
123
sync-dbs = core extra community multilib testing community-testing
124
server = https://mirrors.kernel.org/archlinux/%s/os/x86_64
125
126

[mkpkglists]
127
archivedir = /srv/http/aurweb/web/html
128
packagesfile = /srv/http/aurweb/web/html/packages.gz
129
packagesmetafile = /srv/http/aurweb/web/html/packages-meta-v1.json.gz
130
packagesmetaextfile = /srv/http/aurweb/web/html/packages-meta-ext-v1.json.gz
131
pkgbasefile = /srv/http/aurweb/web/html/pkgbase.gz
132
userfile = /srv/http/aurweb/web/html/users.gz
133
134
135
136
137
138
139
140
141
142
143
144

[devel]
; commit_url is a format string used to produce a link to a commit hash.
commit_url = https://gitlab.archlinux.org/archlinux/aurweb/-/commits/%s

; If commit_hash is configured, a link to the commit based on commit_url
; will be displayed in aurweb's footer with the release version.
; This allows us to diagnose which commit a particular instance is on
; during testing of development branches.
; Example deployment configuration step:
; sed -r "s/^;?(commit_hash) =.*$/\1 = $(git rev-parse HEAD)/" config
;commit_hash = 1234567
145
146
147
148
149
150
151
152

[tuvotereminder]
; Offsets used to determine when TUs should be reminded about
; votes that they should make.
; Reminders will be sent out for all votes that a TU has not yet
; voted on based on `now + range_start <= End <= now + range_end`.
range_start = 500
range_end = 172800