e930afb76d
Signed-off-by: Alexis Saettler <alexis@saettler.org>
288 lines
11 KiB
PHP
288 lines
11 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Version of the application that you run
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is used to indicate which version of Monica you are running. You
|
|
| should not change this setting yourself. DO NOT CHANGE IT YOURSELF. Or
|
|
| bad things will happen.
|
|
|
|
|
*/
|
|
'app_version' => trim(trim(is_file(__DIR__.'/.version') ? file_get_contents(__DIR__.'/.version') : (is_dir(__DIR__.'/../.git') ? exec('git --git-dir '.base_path('.git').' describe --abbrev=0 --tags') : ''), 'v')),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Disable User registration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Disables registration of new users
|
|
|
|
|
*/
|
|
'disable_signup' => env('APP_DISABLE_SIGNUP', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Activate double optin on signup
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Activates double optin on signup
|
|
|
|
|
*/
|
|
'signup_double_optin' => env('APP_SIGNUP_DOUBLE_OPTIN', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| New User Email Notification
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Email to notify when new user registers.
|
|
|
|
|
*/
|
|
'email_new_user_notification' => env('APP_EMAIL_NEW_USERS_NOTIFICATION'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| User and error tracking
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| We provide placeholders for Sentry.
|
|
|
|
|
*/
|
|
'sentry_support' => env('SENTRY_SUPPORT', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Ping that checks if a new version is available
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is used to indicate if you allow the ping to be sent to
|
|
| version.monicahq.com to check if a new version is available.
|
|
|
|
|
*/
|
|
'check_version' => env('CHECK_VERSION', true),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Allow access through the API of the public statistics
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Your Monica instance has some statistics (number of users, number of
|
|
| contacts,...). Those data can be public (they are on MonicaHQ.com).
|
|
| This setting lets you access those data through a public API call.
|
|
|
|
|
*/
|
|
'allow_statistics_through_public_api_access' => env('ALLOW_STATISTICS_THROUGH_PUBLIC_API_ACCESS', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| URL of the server for the version check
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is the server that is used to ping if a new version is avaialble.
|
|
| Do not change this manually.
|
|
|
|
|
*/
|
|
'weekly_ping_server_url' => 'https://version.monicahq.com/ping',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| List of default relationship type group
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This is used to populate the relationship type groups table.
|
|
|
|
|
*/
|
|
'default_relationship_type_group' => [
|
|
'love',
|
|
'family',
|
|
'friend',
|
|
'work',
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Compliance to various international policies.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Indicates whether we should comply to international policies like GDPR or
|
|
| CASL. Defaults to false, but if you do, it's at your own risk.
|
|
|
|
|
*/
|
|
'policy_compliant' => env('POLICY_COMPLIANT', true),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Access to paid features
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines if the instance can access the paid features that
|
|
| are available on https://monicahq.com, for free.
|
|
| If set to false, the instance won't have access to the paid features.
|
|
|
|
|
| Available Settings: true, false
|
|
|
|
|
*/
|
|
'requires_subscription' => env('REQUIRES_SUBSCRIPTION', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Paid plan settings
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the name and the cost of the paid plan offered
|
|
| on https://monicahq.com. These settings make sense only if you do activate
|
|
| the `unlock_paid_features` above.
|
|
|
|
|
|
|
|
*/
|
|
'paid_plan_monthly_friendly_name' => env('PAID_PLAN_MONTHLY_FRIENDLY_NAME', null),
|
|
'paid_plan_monthly_id' => env('PAID_PLAN_MONTHLY_ID', null),
|
|
'paid_plan_monthly_price' => env('PAID_PLAN_MONTHLY_PRICE', null),
|
|
'paid_plan_annual_friendly_name' => env('PAID_PLAN_ANNUAL_FRIENDLY_NAME', null),
|
|
'paid_plan_annual_id' => env('PAID_PLAN_ANNUAL_ID', null),
|
|
'paid_plan_annual_price' => env('PAID_PLAN_ANNUAL_PRICE', null),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Number of allowed contacts
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the number of contacts allowed on a free account.
|
|
|
|
|
*/
|
|
'number_of_allowed_contacts_free_account' => env('NUMBER_OF_ALLOWED_CONTACTS_FREE_ACCOUNT', 10),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Number of contacts to paginate
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the number of contacts to paginate on the contacts page by default.
|
|
|
|
|
*/
|
|
'number_of_contacts_pagination' => env('NUMBER_OF_CONTACTS_PAGINATION', 30),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Email address to contact for support
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value will be the email address used in the footer of the application
|
|
| to contact support.
|
|
|
|
|
*/
|
|
'support_email_address' => env('SUPPORT_EMAIL_ADDRESS', 'support@monicahq.com'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Twitter account for support
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the twitter account shown in case of maintenance in
|
|
| progress.
|
|
|
|
|
*/
|
|
'twitter_account' => env('SUPPORT_TWITTER', 'monicaHQ_app'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Maximum allowed size for uploaded files, in kilobytes.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This value determines the maximum size when uploading a file, in kilobytes.
|
|
|
|
|
*/
|
|
'max_upload_size' => env('DEFAULT_MAX_UPLOAD_SIZE', 10240),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Maximum allowed storage size per account, in megabytes.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This the default limit for each new account. Default value: 512Mb.
|
|
|
|
|
*/
|
|
'max_storage_size' => env('DEFAULT_MAX_STORAGE_SIZE', 512),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable geolocation service.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| For some features, we need to translate addresses to latitude/longitude
|
|
| coordinates. Like getting weather, for instance.
|
|
| If you do enable geolocation, you also need to provide a geolocation
|
|
| api key as shown below.
|
|
|
|
|
*/
|
|
'enable_geolocation' => env('ENABLE_GEOLOCATION', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API key for geolocation service.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| We use LocationIQ (https://locationiq.com/) to translate addresses to
|
|
| latitude/longitude coordinates. We could use Google instead but we don't
|
|
| want to give anything to Google, ever.
|
|
| LocationIQ offers 10,000 free requests per day.
|
|
|
|
|
*/
|
|
'location_iq_api_key' => env('LOCATION_IQ_API_KEY', null),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable weather to be displayed on the contact profile page.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Geolocation needs to be enabled for this feature to work. We need to it
|
|
| to translate addresses to long/latitude coordinates.
|
|
*/
|
|
'enable_weather' => env('ENABLE_WEATHER', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API key for weather data.
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| To provide weather information, we use WeatherAPI.
|
|
| See https://www.weatherapi.com/
|
|
*/
|
|
'weatherapi_key' => env('WEATHERAPI_KEY', null),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Configure default rate limit for route services per minute
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configure rate limit for route services per minute
|
|
*/
|
|
'rate_limit_api' => env('RATE_LIMIT_PER_MINUTE_API', 60),
|
|
'rate_limit_oauth' => env('RATE_LIMIT_PER_MINUTE_OAUTH', 5),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default avatar size
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The default avatar size.
|
|
*/
|
|
'avatar_size' => 200,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Export size count
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Number of exports available. When the number of exports is reached, the
|
|
| oldest export will be deleted.
|
|
|
|
|
*/
|
|
'export_size' => (int) env('EXPORT_SIZE', 5),
|
|
|
|
];
|