-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathconfig.php
More file actions
32 lines (20 loc) · 800 Bytes
/
config.php
File metadata and controls
32 lines (20 loc) · 800 Bytes
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
<?php
# Load local config file (ignored in GIT) if available
if ( (basename(__FILE__) != 'config.local.php') && is_file(__DIR__ . '/config.local.php') ) {
require __DIR__ . '/config.local.php';
return;
}
# where files will recide (make sure it has writable permissions)
define('STORAGE', '/var/files');
# should we redirect user to SSL version of the website (only on GET requests)
define('FORCE_SSL', false);
# How many days should we keep files?
define('EXPIRE_DAYS', 30);
# How many downloads should we allow?
define('MAX_DOWNLOADS', 10);
# Our website host
define('HOST', @$_SERVER['HTTP_HOST']);
# that's just to reset css/js cache on changes (added as GET parameter)
define('STATIC_VERSION', 7);
# is this available on the web? (will add meta tags and logo)
define('WEB', true);