-
Notifications
You must be signed in to change notification settings - Fork 2
/
filemanager.s3.config.php.dist
executable file
·104 lines (88 loc) · 3.34 KB
/
filemanager.s3.config.php.dist
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* S3 plugin configuration
*
* You may over-ride any parameters set by the filemanager.config.php file here
*
* @license MIT License
* @author Wil Moore III <[email protected]>
*/
/*******************************************************************************
* Credentials
******************************************************************************/
/**
* Amazon Web Services Key. Found in the AWS Security Credentials. [default = '']
*/
$config['aws-access-key'] = '';
/**
* Amazon Web Services Secret Key. Found in the AWS Security Credentials. [default = '']
*/
$config['aws-secret-key'] = '';
/*******************************************************************************
* Domain, path, etc.
******************************************************************************/
/**
* [optionally] override the base filemanager's 'doc_root' setting
* You should omit leading and trailing slashes as they will be removed anyhow
*/
$config['doc_root'] = 'user1234/images';
/**
* Should the root directory be created if it doesn't exist? [default = false]
* use if you are dynamically building document root and appending a user specific directory
*/
$config['create-root-dir'] = true;
/**
* S3 bucket name (REQUIRED) [default = '']
*/
$config['s3-bucket'] = 'filesmanager';
/**
* Public DNS name (REQUIRED) [default = null]
*
* suggestions:
* 1) cloudfront distribution domain (i.e. {distribution-name}.cloudfront.net)
* 2) s3 origin domain (i.e. s3.amazonaws.com)
*/
$config['s3-public-domain'] = 'd40rlfik0wts0.cloudfront.net';
/*******************************************************************************
* Cache
******************************************************************************/
/**
* Where should cached objects be stored? [default = 'apc']
* apc, xcache, memcache, memcached, pdo, pdo_sqlite, sqlite, sqlite3 (or path on disk)
*/
$config['aws-cache-scheme'] = 'apc';
/**
* compress (gzip) cached objects (true|false) [default = true]
*/
$config['aws-cache-compress'] = true;
/**
* expire cache after this date/time interval. [default = '1 day ago']
* seconds as integer | relative: http://php.net/manual/en/datetime.formats.relative.php
*/
$config['aws-cache-expirein'] = '1 minute';
/*******************************************************************************
* Debugging
******************************************************************************/
/**
* Enable debug mode (true|false) [default = false]
* Enabling this will turn on debugging for the following components:
*
* 1 - curl (our favorite low-level http-client)
* 2 - CFRuntime (the underlying component behind the AWS services API
* 3 - FileManagerS3 (the actual filemanager plug-in you seek)
*
* Enabling this will also hard disable caching regardless of what you set in:
* - $config['aws-cache-config']
* - $config['aws-cache-compress']
*
* Where debug messages end up depends on 'log_errors' and 'error_log' ini settings
*/
$config['enable-debug-mode'] = true;
/*******************************************************************************
* PHP error log settings
******************************************************************************/
/**
* as a bare-minimum, you will want to have 'log_errors' and 'error_log' set
*/
ini_set('log_errors', true);
ini_set('error_log', 'syslog');