2019-06-05 03:47:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
2022-12-02 03:59:57 +00:00
|
|
|
'force_https_urls' => env('FORCE_HTTPS_URLS', true),
|
2019-07-08 05:23:01 +00:00
|
|
|
|
2021-04-29 01:26:12 +00:00
|
|
|
'description' => env('INSTANCE_DESCRIPTION', 'Pixelfed - Photo sharing for everyone'),
|
2019-06-18 20:16:01 +00:00
|
|
|
|
|
|
|
'contact' => [
|
|
|
|
'enabled' => env('INSTANCE_CONTACT_FORM', false),
|
|
|
|
'max_per_day' => env('INSTANCE_CONTACT_MAX_PER_DAY', 1),
|
|
|
|
],
|
2019-06-27 06:50:01 +00:00
|
|
|
|
2019-07-08 05:23:01 +00:00
|
|
|
'discover' => [
|
2021-02-06 04:09:03 +00:00
|
|
|
'public' => env('INSTANCE_DISCOVER_PUBLIC', false),
|
2020-05-24 05:08:09 +00:00
|
|
|
'loops' => [
|
|
|
|
'enabled' => env('EXP_LOOPS', false),
|
|
|
|
],
|
2019-07-08 05:23:01 +00:00
|
|
|
'tags' => [
|
|
|
|
'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
|
|
|
|
],
|
2019-07-08 02:24:10 +00:00
|
|
|
],
|
2021-04-29 01:26:12 +00:00
|
|
|
|
2019-07-08 05:23:01 +00:00
|
|
|
'email' => env('INSTANCE_CONTACT_EMAIL'),
|
2019-07-08 02:24:10 +00:00
|
|
|
|
|
|
|
'timeline' => [
|
2022-12-16 07:43:20 +00:00
|
|
|
'home' => [
|
|
|
|
'cached' => env('PF_HOME_TIMELINE_CACHE', false),
|
|
|
|
'cache_ttl' => env('PF_HOME_TIMELINE_CACHE_TTL', 900)
|
|
|
|
],
|
|
|
|
|
2019-07-08 02:24:10 +00:00
|
|
|
'local' => [
|
2019-09-06 04:06:23 +00:00
|
|
|
'is_public' => env('INSTANCE_PUBLIC_LOCAL_TIMELINE', false)
|
2022-06-09 10:15:23 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'network' => [
|
2022-10-09 05:23:48 +00:00
|
|
|
'cached' => env('PF_NETWORK_TIMELINE') ? env('INSTANCE_NETWORK_TIMELINE_CACHED', true) : false,
|
2022-06-09 10:15:23 +00:00
|
|
|
'cache_dropoff' => env('INSTANCE_NETWORK_TIMELINE_CACHE_DROPOFF', 100),
|
|
|
|
'max_hours_old' => env('INSTANCE_NETWORK_TIMELINE_CACHE_MAX_HOUR_INGEST', 6)
|
2019-07-08 02:24:10 +00:00
|
|
|
]
|
2019-07-08 05:23:01 +00:00
|
|
|
],
|
|
|
|
|
2019-07-27 06:05:41 +00:00
|
|
|
'page' => [
|
2019-07-27 06:11:16 +00:00
|
|
|
'404' => [
|
|
|
|
'header' => env('PAGE_404_HEADER', 'Sorry, this page isn\'t available.'),
|
|
|
|
'body' => env('PAGE_404_BODY', 'The link you followed may be broken, or the page may have been removed. <a href="/">Go back to Pixelfed.</a>')
|
|
|
|
],
|
2019-07-27 06:05:41 +00:00
|
|
|
'503' => [
|
|
|
|
'header' => env('PAGE_503_HEADER', 'Service Unavailable'),
|
|
|
|
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
|
|
|
|
]
|
|
|
|
],
|
2021-01-29 01:40:13 +00:00
|
|
|
|
2019-11-03 03:12:44 +00:00
|
|
|
'username' => [
|
2020-01-17 06:07:58 +00:00
|
|
|
'banned' => env('BANNED_USERNAMES'),
|
2019-11-03 03:12:44 +00:00
|
|
|
'remote' => [
|
|
|
|
'formats' => ['@', 'from', 'custom'],
|
|
|
|
'format' => in_array(env('USERNAME_REMOTE_FORMAT', '@'), ['@','from','custom']) ? env('USERNAME_REMOTE_FORMAT', '@') : '@',
|
|
|
|
'custom' => env('USERNAME_REMOTE_CUSTOM_TEXT', null)
|
|
|
|
]
|
|
|
|
],
|
2019-12-31 23:16:02 +00:00
|
|
|
|
2021-08-31 06:22:08 +00:00
|
|
|
'polls' => [
|
|
|
|
'enabled' => false
|
|
|
|
],
|
|
|
|
|
2019-12-31 23:16:02 +00:00
|
|
|
'stories' => [
|
|
|
|
'enabled' => env('STORIES_ENABLED', false),
|
2020-01-28 03:55:11 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'restricted' => [
|
|
|
|
'enabled' => env('RESTRICTED_INSTANCE', false),
|
|
|
|
'level' => 1
|
2020-05-24 05:08:09 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'oauth' => [
|
2022-02-18 01:31:28 +00:00
|
|
|
'token_expiration' => env('OAUTH_TOKEN_DAYS', 365),
|
|
|
|
'refresh_expiration' => env('OAUTH_REFRESH_DAYS', 400),
|
2020-05-24 05:08:09 +00:00
|
|
|
'pat' => [
|
|
|
|
'enabled' => env('OAUTH_PAT_ENABLED', false),
|
|
|
|
'id' => env('OAUTH_PAT_ID'),
|
|
|
|
]
|
2021-01-29 01:40:13 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'label' => [
|
|
|
|
'covid' => [
|
|
|
|
'enabled' => env('ENABLE_COVID_LABEL', true),
|
|
|
|
'url' => env('COVID_LABEL_URL', 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public'),
|
|
|
|
'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
|
|
|
|
]
|
|
|
|
],
|
2021-05-12 05:33:08 +00:00
|
|
|
|
2023-05-07 10:47:13 +00:00
|
|
|
'enable_cc' => env('ENABLE_CONFIG_CACHE', true),
|
2022-08-16 05:39:33 +00:00
|
|
|
|
|
|
|
'has_legal_notice' => env('INSTANCE_LEGAL_NOTICE', false),
|
2022-08-16 08:57:52 +00:00
|
|
|
|
|
|
|
'embed' => [
|
|
|
|
'profile' => env('INSTANCE_PROFILE_EMBEDS', true),
|
|
|
|
'post' => env('INSTANCE_POST_EMBEDS', true),
|
|
|
|
],
|
2022-11-28 12:13:12 +00:00
|
|
|
|
|
|
|
'hide_nsfw_on_public_feeds' => env('PF_HIDE_NSFW_ON_PUBLIC_FEEDS', false),
|
2022-12-02 03:31:20 +00:00
|
|
|
|
|
|
|
'avatar' => [
|
|
|
|
'local_to_cloud' => env('PF_LOCAL_AVATAR_TO_CLOUD', false)
|
|
|
|
],
|
2022-12-20 05:30:50 +00:00
|
|
|
|
|
|
|
'admin_invites' => [
|
|
|
|
'enabled' => env('PF_ADMIN_INVITES_ENABLED', true)
|
|
|
|
],
|
2023-03-01 11:16:42 +00:00
|
|
|
|
|
|
|
'user_filters' => [
|
|
|
|
'max_user_blocks' => env('PF_MAX_USER_BLOCKS', 50),
|
2023-12-16 11:56:22 +00:00
|
|
|
'max_user_mutes' => env('PF_MAX_USER_MUTES', 50),
|
|
|
|
'max_domain_blocks' => env('PF_MAX_DOMAIN_BLOCKS', 50),
|
2023-03-13 11:55:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'reports' => [
|
|
|
|
'email' => [
|
|
|
|
'enabled' => env('INSTANCE_REPORTS_EMAIL_ENABLED', false),
|
|
|
|
'to' => env('INSTANCE_REPORTS_EMAIL_ADDRESSES'),
|
|
|
|
'autospam' => env('INSTANCE_REPORTS_EMAIL_AUTOSPAM', false)
|
|
|
|
]
|
2023-04-09 20:40:16 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'landing' => [
|
|
|
|
'show_directory' => env('INSTANCE_LANDING_SHOW_DIRECTORY', true),
|
|
|
|
'show_explore' => env('INSTANCE_LANDING_SHOW_EXPLORE', true),
|
2023-05-13 05:56:55 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'banner' => [
|
|
|
|
'blurhash' => env('INSTANCE_BANNER_BLURHASH', 'UzJR]l{wHZRjM}R%XRkCH?X9xaWEjZj]kAjt')
|
2024-01-11 08:35:15 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'parental_controls' => [
|
|
|
|
'enabled' => env('INSTANCE_PARENTAL_CONTROLS', true),
|
|
|
|
|
|
|
|
'limits' => [
|
|
|
|
'respect_open_registration' => env('INSTANCE_PARENTAL_CONTROLS_RESPECT_OPENREG', true),
|
|
|
|
'max_children' => env('INSTANCE_PARENTAL_CONTROLS_MAX_CHILDREN', 10),
|
|
|
|
'auto_verify_email' => true,
|
|
|
|
],
|
|
|
|
]
|
2021-04-29 01:26:12 +00:00
|
|
|
];
|