-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
19 lines (17 loc) · 1.04 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$config = (object) array
(
"allowed_hosts" => 'localhost', // comma-separated list of allowed HTTP_HOST, simply your domain name
"webroot" => '/', // uploader path or web root with trailing slash
"upload_dir" => 'i', // final image destination, w/o leading nor trailing slash
"logs_dir" => 'logs', // where logs are stored, w/o leading nor trailing slash
"max_filesize" => '10485760', // max file size (in bytes)
"files_limit" => '1000', // global limit of how many files can be stored
"ssl" => true, // redirects to https
"csp" => true, // adds a Content-Security-Policy (CSP) security header with random nonce
"sri" => true, // adds a Subresource Integrity (SRI) hash for css/js integrity checks
"paranoya" => false, // (experimental) https://github.com/c0m4r/up/wiki/paranoya-integration-(experimental)
"paranoya_host" => '127.0.0.1', // (experimental) paranoya --listen-host
"paranoya_port" => 1337 // (experimental) paranoya --listen-port
);
?>