2015-09-12 23:56:09 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Filesystem Datastore
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Pony.fm stores audio and image files in a directory it has read/write
|
|
|
|
| access to. This is the path to it.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'files_directory' => env('PONYFM_DATASTORE'),
|
2017-05-15 13:18:04 +02:00
|
|
|
'ponify_directory' => env('PONIFY_DIRECTORY'),
|
2015-09-12 23:56:09 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Use sendfile?
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| sendfile is a way of letting the web server serve files that aren't
|
|
|
|
| normally in its document root. If the web server is configured for it,
|
|
|
|
| use this setting - otherwise, track files and images will be served by
|
|
|
|
| the PHP process.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'sendfile' => env('USE_SENDFILE', true),
|
|
|
|
|
2015-10-24 04:44:20 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Google Analytics ID
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| If provided, Pony.fm will track activity in the given Google Analytics
|
|
|
|
| profile.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID', null),
|
|
|
|
|
2015-10-25 02:50:45 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Show "Powered by Pony.fm" footer?
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| If true, a "Powered by Pony.fm" footer is used to comply with the
|
|
|
|
| license's attribution requirement. This should only be disabled on
|
|
|
|
| the official Pony.fm website, since that already shares its name with
|
|
|
|
| the open-source project.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use_powered_by_footer' => env('USE_POWERED_BY_FOOTER', true),
|
|
|
|
|
2015-10-26 21:55:15 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2016-01-15 07:20:28 +01:00
|
|
|
| Cache duration
|
2015-10-26 21:55:15 +01:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2015-11-01 17:49:28 +01:00
|
|
|
| Duration in minutes for track files to be stored in cache.
|
2015-10-26 21:55:15 +01:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-11-01 17:49:28 +01:00
|
|
|
'track_file_cache_duration' => 1440,
|
2015-10-26 21:55:15 +01:00
|
|
|
|
2016-01-15 07:20:28 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Elasticsearch index name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The name of the Elasticsearch index to store Pony.fm's search data in.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'elasticsearch_index' => 'ponyfm',
|
|
|
|
|
2016-01-17 16:16:16 +01:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Indexing queue name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| The name of the queue to process re-indexing jobs on. This is separated
|
|
|
|
| from the default queue to avoid having a site-wide re-index clog uploads
|
|
|
|
| and downloads.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'indexing_queue' => 'indexing',
|
|
|
|
|
2016-06-12 07:55:27 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Global validation rules
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Data fields that are validated in multiple places have their validation
|
|
|
|
| rules centralized here.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'validation_rules' => [
|
|
|
|
'username' => ['required', 'min:3', 'max:26'],
|
|
|
|
'display_name' => ['required', 'min:3', 'max:26'],
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Minimum length of a user slug
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| No profile slugs shorter than this will be generated. This setting is
|
|
|
|
| intended to pre-emptively avoid collisions with very short URL's that may
|
|
|
|
| be desirable for future site functionality.
|
|
|
|
|
|
|
|
|
*/
|
2021-02-14 03:39:15 +01:00
|
|
|
|
2016-06-15 15:18:55 +02:00
|
|
|
'user_slug_minimum_length' => 3,
|
2021-02-14 03:39:15 +01:00
|
|
|
|
2016-09-30 00:26:31 +02:00
|
|
|
/*
|
2016-06-12 03:51:40 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Indexing queue name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Google Cloud Messaging API key. Needs to be generated in the Google Cloud
|
|
|
|
| Console as a browser key. This is used to send notifications to users
|
|
|
|
| with push notifications enabled.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'gcm_key' => env('GCM_KEY', 'default'),
|
2021-03-28 18:51:21 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| ffmpeg prefix
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This is the prefix to the ffmpeg binary to use when encoding tracks
|
|
|
|
|
|
|
|
|
| On system where ffmpeg is installed it can be left as default.
|
|
|
|
|
|
|
|
|
| On systems where ffmpeg isn't installed, but docker is, it's preferable
|
|
|
|
| change this so it can use a prebuilt version of ffmpeg.
|
|
|
|
|
|
|
|
|
| E.G "docker run -v "$(pwd):$(pwd)" -w "$(pwd)" jrottenberg/ffmpeg:4.3-alpine312"
|
|
|
|
*/
|
|
|
|
|
|
|
|
'ffmpeg_prefix' => env('FFMPEG_PREFIX', 'ffmpeg'),
|
2015-09-12 23:56:09 +02:00
|
|
|
];
|