summaryrefslogtreecommitdiff
path: root/web/lib/config.inc.proto
blob: 80a7e540518a6e829679a260827ff9315a66742d (plain)
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
<?php

# NOTE: modify these variables if your MySQL setup is different

define( "AUR_db_host", "localhost:/var/run/mysqld/mysqld.sock" );
define( "AUR_db_name", "AUR" );
define( "AUR_db_user", "aur" );
define( "AUR_db_pass", "aur" );

# Configuration of directories where things live
define( "UPLOAD_DIR", "/srv/aur/unsupported-temp/" );
define( "INCOMING_DIR", "/srv/aur/unsupported/" );
define( "URL_DIR", "/packages/" );

define( "USERNAME_MIN_LEN", 3 );
define( "USERNAME_MAX_LEN", 16 );
define( "PASSWD_MIN_LEN", 4 );
define( "PASSWD_MAX_LEN", 128 );

# Default language for displayed messages in the web interface.
define("DEFAULT_LANG", "en");

# Languages we have translations for
$SUPPORTED_LANGS = array(
	"ca" => "Català",
	"cs" => "česky",
	"da" => "Dansk",
	"de" => "Deutsch",
	"en" => "English",
	"el_GR" => "Ελληνικά",
	"es" => "Español",
	"fr" => "Français",
	"he" => "עברית",
	"hr" => "Hrvatski",
	"hu" => "Magyar",
	"it" => "Italiano",
	"nb_NO" => "Norsk",
	"pl" => "Polski",
	"pt" => "Português",
	"ro" => "Română",
	"ru" => "Русский",
	"sr" => "Srpski",
	"tr" => "Türkçe",
	"uk" => "Українська",
	"zh_CN" => "简体中文"
);

# Session limit per user
$MAX_SESSIONS_PER_USER = 8;

# Idle seconds before timeout
$LOGIN_TIMEOUT = 7200;

# Session timeout when using "Remember me" cookies
$PERSISTENT_COOKIE_TIMEOUT = 60 * 60 * 24 * 30;

# Uncompressed file size limit for submitted tarballs (ZIP bomb protection) -
# please ensure "upload_max_filesize" is additionally set to no more than 3M,
# otherwise this check might be easy to bypass (FS#22991 for details)
$MAX_FILESIZE_UNCOMPRESSED = 1024 * 1024 * 8;