/
koel.php
132 lines (110 loc) 路 3.57 KB
/
koel.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
<?php
return [
/*
|--------------------------------------------------------------------------
| Admin Credentials
|--------------------------------------------------------------------------
|
| When running `php artisan koel:init` the admin is set using the .env
|
*/
'admin' => [
'name' => env('ADMIN_NAME'),
'email' => env('ADMIN_EMAIL'),
'password' => env('ADMIN_PASSWORD'),
],
/*
|--------------------------------------------------------------------------
| Sync Options
|--------------------------------------------------------------------------
|
| A timeout is set when using the browser to scan the folder path
|
*/
'media_path' => env('APP_MEDIA_PATH', '/media'),
'sync' => [
'timeout' => env('APP_MAX_SCAN_TIME', 600),
],
/*
|--------------------------------------------------------------------------
| Streaming Configurations
|--------------------------------------------------------------------------
|
| Many streaming options can be set, including, 'bitrate' with 128 set
| as the default, 'method' with php as the default and 'transcoding'
| to configure the path for FFMPEG to transcode FLAC audio files
|
*/
'streaming' => [
'bitrate' => env('OUTPUT_BIT_RATE', 128),
'method' => env('STREAMING_METHOD'),
'ffmpeg_path' => env('FFMPEG_PATH'),
],
/*
|--------------------------------------------------------------------------
| Youtube Integration
|--------------------------------------------------------------------------
|
| Youtube integration requires an youtube API key, see wiki for more
|
*/
'youtube' => [
'key' => env('YOUTUBE_API_KEY'),
'endpoint' => 'https://www.googleapis.com/youtube/v3',
],
/*
|--------------------------------------------------------------------------
| Last.FM Integration
|--------------------------------------------------------------------------
|
| See wiki on how to integrate with Last.FM
|
*/
'lastfm' => [
'key' => env('LASTFM_API_KEY'),
'secret' => env('LASTFM_API_SECRET'),
'endpoint' => 'https://ws.audioscrobbler.com/2.0',
],
/*
|--------------------------------------------------------------------------
| CDN
|--------------------------------------------------------------------------
|
|
|
*/
'cdn' => [
'url' => env('CDN_URL'),
],
/*
|--------------------------------------------------------------------------
| Downloading Music
|--------------------------------------------------------------------------
|
| Koel provides the ability to prohibit or allow [default] downloading music
|
*/
'download' => [
'allow' => env('ALLOW_DOWNLOAD', true),
],
/*
|--------------------------------------------------------------------------
| Ignore Dot Files
|--------------------------------------------------------------------------
|
| Ignore dot files and folders when scanning for media files.
|
*/
'ignore_dot_files' => env('IGNORE_DOT_FILES', true),
'itunes' => [
'enabled' => env('USE_ITUNES', true),
'affiliate_id' => '1000lsGu',
'endpoint' => 'https://itunes.apple.com/search',
],
'cache_media' => env('CACHE_MEDIA', true),
'memory_limit' => env('MEMORY_LIMIT'),
'misc' => [
'home_url' => 'https://koel.phanan.net/',
'docs_url' => 'https://koel.phanan.net/docs',
],
];