-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.inc.php
189 lines (157 loc) · 4.72 KB
/
config.inc.php
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
$config = array(
/*
Enable/Disable Debug Mode
*/
"debug_mode" => false
/*
Process Locking
*/
, "process_lock" => array(
"directory" => "/tmp"
, "filename" => "s3_downloader.lock"
, "deletion" => true
)
/*
Dependencies
*/
, "dependencies" => array(
/*
Optional: Specify the full path to the aws client
i.e.: /usr/bin/aws
*/
"aws" => ""
, "ffmpeg" => array(
/*
Optional: Specify the full path to ffmpeg
i.e.: /usr/bin/ffmpeg
*/
"path" => ""
/*
Optional: Enable ffmpeg hardware acceleration.
Set to "true" (without quotes) to enable.
Set to "false" (without quotes) to disable.
Notice: This will be enabled by default if this is not set.
*/
, "hwaccel" => true
)
/*
Optional: Specify the full path to ffprobe
i.e.: /usr/bin/ffprobe
*/
, "ffprobe" => ""
)
/*
Database Configuration
*/
, "database" => array(
"directory" => DB_PATH
, "filename" => "mydb.sq3"
)
/*
Amazon Configuration
*/
, "aws" => array(
/*
Specify the name of the Amazon S3 Bucket
*/
"s3_bucket_name" => ""
/*
Specify an alternate URL to use to retrieve files.
This may be needed in some cases, i.e.: if the publicly available download is behind a proxy service.
*/
, "alternate_url" => ""
)
/*
Received Data Paramaters
*/
, "received" => array(
/*
Where is received data stored?
By default, it is set to utilize a directory named "received" in the script's location.
In some cases, this may not need to be changed.
This script will require permissions to read from and write into that directory.
*/
"directory" => "/data/received"
)
/*
Data Storage Parameters
*/
, "storage" => array(
/*
Define a timezone to use for date related functions.
http://php.net/manual/en/timezones.php
*/
"timezone" => "America/New_York"
/*
Where will addressed data be stored?
By default, it is set to utilize a directory named "storage" in the script's location.
In some cases, this may not need to be changed.
This script will require permissions to read from and write into that directory.
*/
, "directory" => "/data/storage"
/*
This controls the permissions of the data storage directory.
This will need to be defined using NUMERIC notation.
In most cases, 0755 should suffice. Adjust accordingly as necessary.
For further information, reference:
https://en.wikipedia.org/w/index.php?title=File_system_permissions&oldid=808567801#Numeric_notation
Note: This setting has no effect when executed under Windows, but will still *need* to be set.
*/
, "permissions" => 0755
)
/*
Configure RCX Paramters
*/
, "rolling_curl_x" => array(
/*
Set the maximum number of connections to use.
This is an integer, and should be entered as numbers, with no surrounding quotes.
Set between 1 and 10.
*/
"max_connections" => 10
/*
Set the timeout period.
This is an integer, and should be entered as numbers, with no surrounding quotes.
This value should be entered in milliseconds.
1000 milliseconds (ms) is equal to 1 second (5000 ms = 5 seconds, 10000 = 10 seconds, etc.)
*/
, "timeout_period" => 300000
/*
Set the user agent to identify as.
*/
, "user_agent" => "Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
)
/*
Logging Parameters
*/
, "logger" => array(
/*
Define a timezone to use for date related functions.
http://php.net/manual/en/timezones.php
*/
"timezone" => "America/New_York"
/*
Where will log files be stored?
In some cases, this may not need to be changed.
By default, it is set to create a directory named "logs" in the script's location.
If this script does not have permissions to do so, a directory will need to be created for it.
This script will require permissions to write into that directory.
*/
, "log_dir_path" => "/tmp"
/*
This controls the permissions of the log directory.
This will need to be defined using NUMERIC notation.
In most cases, 0755 should suffice. Adjust accordingly as necessary.
For further information, reference:
https://en.wikipedia.org/w/index.php?title=File_system_permissions&oldid=808567801#Numeric_notation
Note: This setting has no effect when executed under Windows, but will still *need* to be set.
*/
, "log_dir_permissions" => 0755
/*
This identifies the prefix of the file name for the log files.
*/
, "log_file_name_prexfix" => "s3_downloader"
)
);
?>