Skip to content
Snippets Groups Projects
config.inc.proto 1.36 KiB
Newer Older
# NOTE: modify these variables if your MySQL setup is different
Andrea Scarpino's avatar
Andrea Scarpino committed
define( "AUR_db_host", "localhost:/var/run/mysqld/mysqld.sock" );
define( "AUR_db_name", "AUR" );
louipc louipc's avatar
louipc louipc committed
define( "AUR_db_user", "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(
Laszlo Papp's avatar
Laszlo Papp committed
	"cs" => "česky",
Jacob Bang's avatar
Jacob Bang committed
	"da" => "Dansk",
flamelab's avatar
flamelab committed
	"el_GR" => "Ελληνικά",
	"es" => "Español",
	"fr" => "Français",
Netanel Shine's avatar
Netanel Shine committed
	"he" => "עברית",
	"hr" => "Hrvatski",
	"hu" => "Magyar",
Laszlo Papp's avatar
Laszlo Papp committed
	"nb_NO" => "Norsk",
	"ro" => "Română",
	"sr" => "Srpski",
louipc louipc's avatar
louipc louipc committed
	"tr" => "Türkçe",
	"uk" => "Українська",
louipc louipc's avatar
louipc louipc committed
	"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;