pixelfed/config/pixelfed.php

280 lines
8.8 KiB
PHP
Raw Normal View History

2018-05-20 21:47:39 +00:00
<?php
return [
2018-05-23 00:45:13 +00:00
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| Domains
|--------------------------------------------------------------------------
|
| Application domains used for routing
|
*/
'domain' => [
'admin' => env('ADMIN_DOMAIN'),
2018-08-28 03:07:36 +00:00
'app' => env('APP_DOMAIN'),
2018-05-28 23:48:59 +00:00
],
2018-05-23 00:45:13 +00:00
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| PixelFed Version
|--------------------------------------------------------------------------
|
| This value is the version of your PixelFed instance.
|
*/
2019-04-06 18:24:59 +00:00
'version' => '0.8.6',
2018-05-23 00:45:13 +00:00
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| NodeInfo Route Path
|--------------------------------------------------------------------------
|
| Do not change this value unless you know what you are doing.
|
*/
'nodeinfo' => [
2018-08-28 03:07:36 +00:00
'url' => config('app.url').'/'.'api/nodeinfo/2.0.json',
2018-05-28 23:48:59 +00:00
],
2018-05-23 00:45:13 +00:00
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| PHP/ImageMagic/GD Memory Limit
|--------------------------------------------------------------------------
|
| This memory_limit value is only used for image processing. The
| default memory_limit php.ini is used for the rest of the app.
|
*/
2019-04-18 01:35:46 +00:00
'memory_limit' => env('MEMORY_LIMIT', '1024M'),
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| Restricted Usernames
|--------------------------------------------------------------------------
|
| Optional blacklist to prevent registering usernames that could
| be confused for admin or system services.
|
*/
'restricted_names' => [
'reserved_routes' => true,
2018-12-29 03:25:19 +00:00
'use_blacklist' => env('USERNAME_BLACKLIST', false),
2018-05-28 23:48:59 +00:00
],
2018-08-28 03:07:36 +00:00
2018-05-28 23:48:59 +00:00
/*
|--------------------------------------------------------------------------
| Allow New Registrations
|--------------------------------------------------------------------------
|
| Enable/disable new local account registrations.
|
*/
'open_registration' => env('OPEN_REGISTRATION', true),
2018-10-21 05:16:11 +00:00
/*
|--------------------------------------------------------------------------
| Enable Google Recaptcha v2
|--------------------------------------------------------------------------
|
| Enable/disable recaptcha on login/registration forms. API Keys required.
|
*/
2018-08-28 03:07:36 +00:00
'recaptcha' => env('RECAPTCHA_ENABLED', false),
2018-10-21 05:16:11 +00:00
'remote_follow_enabled' => env('REMOTE_FOLLOW', false),
'activitypub_enabled' => env('ACTIVITY_PUB', false),
2018-07-12 16:43:02 +00:00
/*
|--------------------------------------------------------------------------
| Account file size limit
|--------------------------------------------------------------------------
|
2018-07-23 20:37:28 +00:00
| Update the max account size, the per user limit of files in KB.
|
2018-07-12 16:43:02 +00:00
|
*/
2018-08-10 02:31:14 +00:00
'max_account_size' => env('MAX_ACCOUNT_SIZE', 1000000),
2018-07-12 16:43:02 +00:00
/*
|--------------------------------------------------------------------------
| Photo file size limit
|--------------------------------------------------------------------------
|
| Update the max photo size, in KB.
|
*/
'max_photo_size' => env('MAX_PHOTO_SIZE', 15000),
/*
|--------------------------------------------------------------------------
| Avatar file size limit
|--------------------------------------------------------------------------
|
| Update the max avatar size, in KB.
|
*/
'max_avatar_size' => (int) env('MAX_AVATAR_SIZE', 2000),
/*
|--------------------------------------------------------------------------
| Caption limit
|--------------------------------------------------------------------------
|
| Change the caption length limit for new local posts.
|
*/
2018-08-26 16:53:20 +00:00
'max_caption_length' => env('MAX_CAPTION_LENGTH', 500),
/*
|--------------------------------------------------------------------------
| Bio length limit
|--------------------------------------------------------------------------
|
| Change the bio length limit for user profiles.
|
*/
'max_bio_length' => env('MAX_BIO_LENGTH', 125),
/*
|--------------------------------------------------------------------------
| User name length limit
|--------------------------------------------------------------------------
|
| Change the length limit for user names.
|
*/
'max_name_length' => env('MAX_NAME_LENGTH', 30),
2018-06-14 02:57:16 +00:00
/*
|--------------------------------------------------------------------------
| Album size limit
|--------------------------------------------------------------------------
|
| The max number of photos allowed per post.
|
*/
'max_album_length' => env('MAX_ALBUM_LENGTH', 4),
2018-06-14 05:30:43 +00:00
/*
|--------------------------------------------------------------------------
| Email Verification
|--------------------------------------------------------------------------
|
| Require email verification before a new user can do anything.
|
*/
'enforce_email_verification' => env('ENFORCE_EMAIL_VERIFICATION', true),
2018-08-10 02:31:14 +00:00
/*
|--------------------------------------------------------------------------
| Image Quality
|--------------------------------------------------------------------------
|
| Set the image optimization quality, must be a value between 1-100.
|
*/
'image_quality' => (int) env('IMAGE_QUALITY', 80),
2018-08-28 03:01:08 +00:00
2018-12-30 05:37:30 +00:00
/*
|--------------------------------------------------------------------------
| Account deletion
|--------------------------------------------------------------------------
|
| Enable account deletion.
|
*/
'account_deletion' => env('ACCOUNT_DELETION', true),
/*
|--------------------------------------------------------------------------
| Account deletion after X days
|--------------------------------------------------------------------------
|
| Set account deletion queue after X days, set to false to delete accounts
| immediately.
|
*/
'account_delete_after' => env('ACCOUNT_DELETE_AFTER', false),
2019-01-12 07:41:47 +00:00
/*
|--------------------------------------------------------------------------
| Enable Cloud Storage
|--------------------------------------------------------------------------
|
| Store media on object storage like S3, Digital Ocean Spaces, Rackspace
|
*/
'cloud_storage' => env('PF_ENABLE_CLOUD', false),
2019-01-31 01:11:22 +00:00
/*
|--------------------------------------------------------------------------
| Max User Limit
|--------------------------------------------------------------------------
|
| Allow a maximum number of user accounts. Default: off
|
*/
'max_users' => env('PF_MAX_USERS', false),
2019-02-11 04:51:22 +00:00
/*
|--------------------------------------------------------------------------
| Optimize Images
|--------------------------------------------------------------------------
|
| Resize and optimize image uploads. Default: on
|
*/
'optimize_image' => env('PF_OPTIMIZE_IMAGES', true),
/*
|--------------------------------------------------------------------------
| Optimize Videos
|--------------------------------------------------------------------------
|
| Resize and optimize video uploads. Default: on
|
*/
'optimize_video' => env('PF_OPTIMIZE_VIDEOS', true),
2019-02-22 18:18:56 +00:00
/*
|--------------------------------------------------------------------------
| User invites
|--------------------------------------------------------------------------
|
| Allow users to invite others via email.
| Will respect max user limit and prevent invites after the
| limit is reached. Default: off
|
*/
'user_invites' => [
'enabled' => env('PF_USER_INVITES', false),
'limit' => [
'total' => (int) env('PF_USER_INVITES_TOTAL_LIMIT', 0),
'daily' => (int) env('PF_USER_INVITES_DAILY_LIMIT', 0),
'monthly' => (int) env('PF_USER_INVITES_MONTHLY_LIMIT', 0),
]
],
2018-12-30 05:37:30 +00:00
2018-10-17 02:13:55 +00:00
'media_types' => env('MEDIA_TYPES', 'image/jpeg,image/png,image/gif'),
2019-04-18 01:35:46 +00:00
2018-10-21 05:16:11 +00:00
'enforce_account_limit' => env('LIMIT_ACCOUNT_SIZE', true),
2019-04-18 01:35:46 +00:00
2018-10-27 04:38:11 +00:00
'ap_inbox' => env('ACTIVITYPUB_INBOX', false),
'ap_shared' => env('ACTIVITYPUB_SHAREDINBOX', false),
'ap_delivery_timeout' => env('ACTIVITYPUB_DELIVERY_TIMEOUT', 2.0),
2019-03-17 22:25:53 +00:00
'ap_delivery_concurrency' => env('ACTIVITYPUB_DELIVERY_CONCURRENCY', 10),
'import' => [
'instagram' => [
2019-04-18 01:35:46 +00:00
'enabled' => false,
2019-03-17 22:25:53 +00:00
'limits' => [
'posts' => (int) env('IMPORT_INSTAGRAM_POST_LIMIT', 100),
'size' => (int) env('IMPORT_INSTAGRAM_SIZE_LIMIT', 250)
]
]
],
];