1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/config/ninja.php

130 lines
4.8 KiB
PHP
Raw Normal View History

2018-10-04 19:41:22 +02:00
<?php
return [
'web_url' => 'https://www.invoiceninja.com',
'license_url' => 'https://app.invoiceninja.com',
'production' => env('NINJA_PROD', false),
'license' => env('NINJA_LICENSE', ''),
'version_url' => 'https://raw.githubusercontent.com/invoiceninja/invoiceninja/v2/VERSION.txt',
'app_name' => env('APP_NAME'),
'app_env' => env('APP_ENV', 'local'),
2020-06-15 13:42:46 +02:00
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => env('APP_URL', ''),
'app_domain' => env('APP_DOMAIN', ''),
2020-06-30 02:10:03 +02:00
'app_version' => '5.0.10',
2020-06-26 11:54:43 +02:00
'minimum_client_version' => '5.0.11',
'terms_version' => '1.0.1',
2019-03-27 05:50:13 +01:00
'api_secret' => env('API_SECRET', ''),
'google_maps_api_key' => env('GOOGLE_MAPS_API_KEY'),
'google_analytics_url' => env('GOOGLE_ANALYTICS_URL', 'https://www.google-analytics.com/collect'),
2019-04-24 04:34:39 +02:00
'key_length' => 64,
2019-05-29 13:15:42 +02:00
'date_format' => 'Y-m-d',
'date_time_format' => 'Y-m-d H:i',
2019-05-31 06:01:47 +02:00
'daily_email_limit' => 300,
'error_email' => env('ERROR_EMAIL', ''),
'company_id' => 0,
'hash_salt' => env('HASH_SALT', ''),
'currency_converter_api_key' => env('OPENEXCHANGE_APP_ID',''),
'enabled_modules' => 4095,
'environment' => env('NINJA_ENVIRONMENT', 'selfhost'), // 'hosted', 'development', 'selfhost', 'reseller'
2018-10-04 19:41:22 +02:00
// Settings used by invoiceninja.com
'terms_of_service_url' => [
'hosted' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/terms/'),
'selfhost' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/self-hosting-terms-service/'),
],
'privacy_policy_url' => [
'hosted' => env('PRIVACY_POLICY_URL', 'https://www.invoiceninja.com/privacy-policy/'),
'selfhost' => env('PRIVACY_POLICY_URL', 'https://www.invoiceninja.com/self-hosting-privacy-data-control/'),
],
'db' => [
'multi_db_enabled' => env('MULTI_DB_ENABLED', false),
'default' => env('DB_CONNECTION', 'mysql'),
],
'i18n' => [
'timezone_id' => env('DEFAULT_TIMEZONE', 1),
2019-04-24 02:22:02 +02:00
'country_id' => env('DEFAULT_COUNTRY', 840), // United Stated
2019-09-11 04:01:49 +02:00
'currency_id' => env('DEFAULT_CURRENCY', 1),
2019-04-24 02:22:02 +02:00
'language_id' => env('DEFAULT_LANGUAGE', 1), //en
2019-09-22 11:30:03 +02:00
'date_format_id' => env('DEFAULT_DATE_FORMAT_ID', '1'),
'datetime_format_id' => env('DEFAULT_DATETIME_FORMAT_ID', '1'),
'locale' => env('DEFAULT_LOCALE', 'en'),
'map_zoom' => env('DEFAULT_MAP_ZOOM', 10),
'payment_terms' => env('DEFAULT_PAYMENT_TERMS', "-1"),
'military_time' => env('MILITARY_TIME', 0),
'first_day_of_week' => env('FIRST_DATE_OF_WEEK', 0),
'first_month_of_year' => env('FIRST_MONTH_OF_YEAR', '2000-01-01')
],
'testvars' => [
'username' => 'user@example.com',
'clientname' => 'client@example.com',
'password' => 'password',
'stripe' => env('STRIPE_KEYS', ''),
2019-09-30 01:26:37 +02:00
'paypal' => env('PAYPAL_KEYS', ''),
2020-06-09 13:17:26 +02:00
'authorize' => env('AUTHORIZE_KEYS',''),
'checkout' => env('CHECKOUT_KEYS',''),
2019-10-04 12:20:02 +02:00
'travis' => env('TRAVIS', false),
'test_email' => env('TEST_EMAIL', 'test@example.com'),
],
'contact' => [
'email' => env('MAIL_FROM_ADDRESS'),
'from_name' => env('MAIL_FROM_NAME'),
'ninja_official_contact' => env('NINJA_OFFICIAL_CONTACT', 'contact@invoiceninja.com'),
],
2019-09-11 01:31:55 +02:00
'cached_tables' => [
'banks' => 'App\Models\Bank',
'countries' => 'App\Models\Country',
2019-09-11 01:31:55 +02:00
'currencies' => 'App\Models\Currency',
2019-09-23 00:05:23 +02:00
'date_formats' => 'App\Models\DateFormat',
'datetime_formats' => 'App\Models\DatetimeFormat',
'gateways' => 'App\Models\Gateway',
'gateway_types' => 'App\Models\GatewayType',
'industries' => 'App\Models\Industry',
2019-09-11 01:31:55 +02:00
'languages' => 'App\Models\Language',
'payment_types' => 'App\Models\PaymentType',
'sizes' => 'App\Models\Size',
'timezones' => 'App\Models\Timezone',
2019-09-11 01:31:55 +02:00
//'invoiceDesigns' => 'App\Models\InvoiceDesign',
//'invoiceStatus' => 'App\Models\InvoiceStatus',
//'frequencies' => 'App\Models\Frequency',
//'fonts' => 'App\Models\Font',
],
'notification' => [
'slack' => env('SLACK_WEBHOOK_URL', ''),
'mail' => env('HOSTED_EMAIL', ''),
],
'themes' => [
'global' => 'ninja2020',
'portal' => 'ninja2020',
],
'quotas' => [
'free' => [
'clients' => 50,
'daily_emails' => 50,
],
'pro' => [
'daily_emails' => 100,
],
'enterprise' => [
'daily_emails' => 200,
]
2020-05-13 08:33:50 +02:00
],
'auth' => [
'google' => [
'client_id' => env('GOOGLE_CLIENT_ID', ''),
'client_secret' => env('GOOGLE_CLIENT_SECRET','')
]
2020-07-01 00:29:05 +02:00
],
'system' => [
'node_path' => env('NODE_PATH', false),
'npm_path' => env('NPM_PATH', false)
]
2018-10-04 19:41:22 +02:00
];