mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
00f24a5c12
* Adopt PSR-2 coding style The Laravel framework adopts the PSR-2 coding style in version 5.1. Laravel apps *should* adopt this coding style as well. Read the [PSR-2 coding style guide][1] for more details and check out [PHPCS][2] to use as a code formatting tool. [1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md [2]: https://github.com/squizlabs/PHP_CodeSniffer * Adopt PHP short array syntax Laravel 5 adopted the short array syntax which became available in PHP 5.4. * Remove SelfHandling from Jobs Jobs are self handling by default in Laravel 5.2. * Add new exceptions to `$dontReport` property * Shift core files * Shift Middleware Laravel 5.2 adjusts the `Guard` object used within middleware. In addition, new `can` and `throttles` middleware were added. * Shift Input to Request facade Laravel 5.2 no longer registers the `Input` facade by default. Laravel now prefers using the `Request` facade or the `$request` object within *Controllers* instead. Review the [HTTP Requests][1] documentation for more details. [1]: https://laravel.com/docs/5.2/requests * Shift configuration Laravel 5.2 introduces the `env` app configuration option and removes the `pretend` mail configuration option. In addition, a few of the default `providers` and `aliases` bindings were removed. * Shift Laravel dependencies * Shift cleanup * Updated composer.lock * Updated Middleware to 5.2 * Config update for Laravel 5.2 * [Laravel 5.2] Updated validation strings * Updated auth config * Updated to use middleware groups * Added laravel 5.2 sessions migration
132 lines
4.2 KiB
PHP
132 lines
4.2 KiB
PHP
<?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'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Google Analytics ID
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| If provided, Pony.fm will track activity in the given Google Analytics
|
|
| profile.
|
|
|
|
|
*/
|
|
|
|
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID', null),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Cache duration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Duration in minutes for track files to be stored in cache.
|
|
|
|
|
*/
|
|
|
|
'track_file_cache_duration' => 1440,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Elasticsearch index name
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The name of the Elasticsearch index to store Pony.fm's search data in.
|
|
|
|
|
*/
|
|
|
|
'elasticsearch_index' => 'ponyfm',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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.
|
|
|
|
|
*/
|
|
|
|
'user_slug_minimum_length' => 3,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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'),
|
|
];
|