forked from jeckman/YouTube-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
99 lines (91 loc) · 3.54 KB
/
config.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
<?PHP
/**********|| Thumbnail Image Configuration ||***************/
# $config['ThumbnailImageMode']=0; // don't show thumbnail image
# $config['ThumbnailImageMode']=1; // show thumbnail image directly from YouTube
$config['ThumbnailImageMode']=2; // show thumbnail image by proxy from this server
/**********|| Video Download Link Configuration ||***************/
#$config['VideoLinkMode']='direct'; // show only direct download link
#$config['VideoLinkMode']='proxy'; // show only by proxy download link
$config['VideoLinkMode']='both'; // show both direct and by proxy download links
/**********|| features ||***************/
$config['feature']['browserExtensions']=true; // show links for install browser extensions? true or false
/**********|| Multiple IPs ||***************/
# You can enable this option if you are having problems with youtube IP limit / IP ban.
# This option will work only if the IP you add are available for the server.
# That means you have to buy some additionnal public IPs and assign these new static IPs to the server.
# This should work only if you have a dedicated server...
#
#
# Example of adding additional IPs to Ubuntu server 14.04 LTS
# !!!! Be very careful, you may block yourself !!!!
# !!!! If you are connecting to your server remotly by ssh. You would do this only if you know what you do !!!!
# !!!! This is only an example with a specific dedicated server (ovh.net) !!!!
#
# For this example, the main IP on the server is 123.456.789.001
# We want to add additionnal IPs 789.456.123.001 and 789.456.123.002
#
# Edit /etc/network/interfaces and put something like this:
#
# # The loopback network interface
# auto lo
# iface lo inet loopback
#
# # The Main server IP:
# auto eth0
# iface eth0 inet static
# address 123.456.789.001
# netmask 255.255.255.0
# network 123.456.789.0
# broadcast 123.456.789.255
# gateway 123.456.789.254
#
# # Additionnal IP: 789.456.123.001
# auto eth0:0
# iface eth0:0 inet static
# address 789.456.123.001
# netmask 255.255.255.255
# broadcast 789.456.123.001
# gateway 123.456.789.254
#
# # Additionnal IP: 789.456.123.002
# auto eth0:1
# iface eth0:0 inet static
# address 789.456.123.002
# netmask 255.255.255.255
# broadcast 789.456.123.002
# gateway 123.456.789.254
#
# # Additionnal IP xxx.xxx.xxx.xxx
# auto eth0:2
# iface eth0:2 inet static
# (...)
#
# and so on for each IP you want to add....
#
#
# Reboot your server
# If you are having trouble and cannot connect anymore over ssh to your server,
# that means your new network configuration has errors...
# So be very careful before applying your configuration.
# Try it first on a local dev server before messing up with your pro server.
#
#
$config['multipleIPs']=false; // enable multiple IPs support to bypass Youtube IP limit? true or false
$config['IPs'] = [
//'xxx.xxx.xxx.xxx',
//'xxx.xxx.xxx.xxx',
//'xxx.xxx.xxx.xxx',
//'xxx.xxx.xxx.xxx',
//'xxx.xxx.xxx.xxx',
// add as many ips as you want (they must be available in the server conf (ex: /etc/network/interfaces fro ubuntu/debian)
];
/**********|| Other ||***************/
// Set your default timezone
// use this link: http://php.net/manual/en/timezones.php
date_default_timezone_set("Asia/Tehran");
// Debug mode
#$debug=true; // debug mode on
$debug=false; // debug mode off
/**********|| Don't edit below ||***************/
include_once('curl.php');
?>