2018-10-04 19:41:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'web_url' => 'https://www.invoiceninja.com',
|
2021-04-01 06:39:56 +02:00
|
|
|
'admin_token' => env('NINJA_ADMIN_TOKEN', ''),
|
2020-03-01 11:18:13 +01:00
|
|
|
'license_url' => 'https://app.invoiceninja.com',
|
|
|
|
'production' => env('NINJA_PROD', false),
|
2020-03-07 13:46:45 +01:00
|
|
|
'license' => env('NINJA_LICENSE', ''),
|
2021-05-19 01:42:48 +02:00
|
|
|
'version_url' => 'https://pdf.invoicing.co/api/version',
|
2020-12-21 11:46:46 +01:00
|
|
|
'app_name' => env('APP_NAME', 'Invoice Ninja'),
|
2020-07-21 01:00:59 +02:00
|
|
|
'app_env' => env('APP_ENV', 'selfhosted'),
|
2021-01-05 05:41:43 +01:00
|
|
|
'debug_enabled' => env('APP_DEBUG', false),
|
2020-06-15 13:42:46 +02:00
|
|
|
'require_https' => env('REQUIRE_HTTPS', true),
|
2020-12-07 21:21:08 +01:00
|
|
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
2021-04-28 05:40:11 +02:00
|
|
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
2022-05-17 13:03:07 +02:00
|
|
|
'app_version' => '5.3.89',
|
|
|
|
'app_tag' => '5.3.89',
|
2020-09-18 09:21:42 +02:00
|
|
|
'minimum_client_version' => '5.0.16',
|
2018-10-22 14:04:37 +02:00
|
|
|
'terms_version' => '1.0.1',
|
2021-05-09 13:30:31 +02:00
|
|
|
'api_secret' => env('API_SECRET', ''),
|
2018-11-07 06:22:36 +01:00
|
|
|
'google_maps_api_key' => env('GOOGLE_MAPS_API_KEY'),
|
2020-04-09 14:04:26 +02:00
|
|
|
'google_analytics_url' => env('GOOGLE_ANALYTICS_URL', 'https://www.google-analytics.com/collect'),
|
2021-10-14 07:25:09 +02:00
|
|
|
'key_length' => 32,
|
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', ''),
|
2020-12-03 15:33:18 +01:00
|
|
|
'mailer' => env('MAIL_MAILER', ''),
|
2020-02-24 11:15:30 +01:00
|
|
|
'company_id' => 0,
|
2020-03-18 10:40:15 +01:00
|
|
|
'hash_salt' => env('HASH_SALT', ''),
|
2020-09-06 11:38:10 +02:00
|
|
|
'currency_converter_api_key' => env('OPENEXCHANGE_APP_ID', ''),
|
2020-07-24 00:00:28 +02:00
|
|
|
'enabled_modules' => 32767,
|
2021-03-07 07:27:44 +01:00
|
|
|
'phantomjs_key' => env('PHANTOMJS_KEY', 'a-demo-key-with-low-quota-per-ip-address'),
|
2020-08-04 13:00:19 +02:00
|
|
|
'phantomjs_secret' => env('PHANTOMJS_SECRET', false),
|
2021-10-11 04:19:38 +02:00
|
|
|
'phantomjs_pdf_generation' => env('PHANTOMJS_PDF_GENERATION', false),
|
|
|
|
'pdf_generator' => env('PDF_GENERATOR', false),
|
2020-10-01 01:32:27 +02:00
|
|
|
'trusted_proxies' => env('TRUSTED_PROXIES', false),
|
2021-01-18 21:40:54 +01:00
|
|
|
'is_docker' => env('IS_DOCKER', false),
|
2021-09-05 11:40:50 +02:00
|
|
|
'local_download' => env('LOCAL_DOWNLOAD', false),
|
2021-12-15 03:15:05 +01:00
|
|
|
'sentry_dsn' => env('SENTRY_LARAVEL_DSN', 'https://39389664f3f14969b4c43dadda00a40b@sentry2.invoicing.co/5'),
|
2018-10-19 05:45:55 +02:00
|
|
|
'environment' => env('NINJA_ENVIRONMENT', 'selfhost'), // 'hosted', 'development', 'selfhost', 'reseller'
|
2021-03-12 01:48:41 +01:00
|
|
|
'preconfigured_install' => env('PRECONFIGURED_INSTALL',false),
|
2021-04-22 23:22:14 +02:00
|
|
|
'update_secret' => env('UPDATE_SECRET', ''),
|
2018-10-19 05:45:55 +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/'),
|
|
|
|
],
|
2018-10-21 00:26:21 +02:00
|
|
|
|
|
|
|
'db' => [
|
|
|
|
'multi_db_enabled' => env('MULTI_DB_ENABLED', false),
|
|
|
|
'default' => env('DB_CONNECTION', 'mysql'),
|
2018-10-22 14:04:37 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'i18n' => [
|
2019-12-14 06:49:48 +01:00
|
|
|
'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'),
|
2018-10-22 14:04:37 +02:00
|
|
|
'locale' => env('DEFAULT_LOCALE', 'en'),
|
|
|
|
'map_zoom' => env('DEFAULT_MAP_ZOOM', 10),
|
2020-09-06 11:38:10 +02:00
|
|
|
'payment_terms' => env('DEFAULT_PAYMENT_TERMS', ''),
|
2019-03-02 22:44:08 +01:00
|
|
|
'military_time' => env('MILITARY_TIME', 0),
|
2020-03-21 06:37:30 +01:00
|
|
|
'first_day_of_week' => env('FIRST_DATE_OF_WEEK', 0),
|
2020-09-06 11:38:10 +02:00
|
|
|
'first_month_of_year' => env('FIRST_MONTH_OF_YEAR', '2000-01-01'),
|
2018-10-22 14:04:37 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
'testvars' => [
|
|
|
|
'username' => 'user@example.com',
|
|
|
|
'clientname' => 'client@example.com',
|
|
|
|
'password' => 'password',
|
2020-03-21 06:37:30 +01:00
|
|
|
'stripe' => env('STRIPE_KEYS', ''),
|
2019-09-30 01:26:37 +02:00
|
|
|
'paypal' => env('PAYPAL_KEYS', ''),
|
2020-09-06 11:38:10 +02:00
|
|
|
'authorize' => env('AUTHORIZE_KEYS', ''),
|
|
|
|
'checkout' => env('CHECKOUT_KEYS', ''),
|
2019-10-04 12:20:02 +02:00
|
|
|
'travis' => env('TRAVIS', false),
|
2020-03-21 06:37:30 +01:00
|
|
|
'test_email' => env('TEST_EMAIL', 'test@example.com'),
|
2021-07-09 15:16:14 +02:00
|
|
|
'wepay' => env('WEPAY_KEYS', ''),
|
2021-07-09 15:56:16 +02:00
|
|
|
'braintree' => env('BRAINTREE_KEYS', ''),
|
2021-07-23 04:12:42 +02:00
|
|
|
'paytrace' => [
|
|
|
|
'username' => env('PAYTRACE_U', ''),
|
2021-07-27 23:59:44 +02:00
|
|
|
'password' => env('PAYTRACE_P',''),
|
|
|
|
'decrypted' => env('PAYTRACE_KEYS', ''),
|
2021-07-23 04:12:42 +02:00
|
|
|
],
|
2021-07-23 13:42:13 +02:00
|
|
|
'mollie' => env('MOLLIE_KEYS', ''),
|
2021-08-14 11:32:16 +02:00
|
|
|
'square' => env('SQUARE_KEYS',''),
|
2018-10-22 14:04:37 +02:00
|
|
|
],
|
|
|
|
'contact' => [
|
|
|
|
'email' => env('MAIL_FROM_ADDRESS'),
|
|
|
|
'from_name' => env('MAIL_FROM_NAME'),
|
2019-10-16 22:12:38 +02:00
|
|
|
'ninja_official_contact' => env('NINJA_OFFICIAL_CONTACT', 'contact@invoiceninja.com'),
|
2018-10-22 14:04:37 +02:00
|
|
|
],
|
2019-09-11 01:31:55 +02:00
|
|
|
'cached_tables' => [
|
2020-09-06 11:38:10 +02:00
|
|
|
'banks' => App\Models\Bank::class,
|
|
|
|
'countries' => App\Models\Country::class,
|
|
|
|
'currencies' => App\Models\Currency::class,
|
|
|
|
'date_formats' => App\Models\DateFormat::class,
|
|
|
|
'datetime_formats' => App\Models\DatetimeFormat::class,
|
|
|
|
'gateways' => App\Models\Gateway::class,
|
2020-10-12 13:32:31 +02:00
|
|
|
//'gateway_types' => App\Models\GatewayType::class,
|
2020-09-06 11:38:10 +02:00
|
|
|
'industries' => App\Models\Industry::class,
|
|
|
|
'languages' => App\Models\Language::class,
|
|
|
|
'payment_types' => App\Models\PaymentType::class,
|
|
|
|
'sizes' => App\Models\Size::class,
|
|
|
|
'timezones' => App\Models\Timezone::class,
|
2019-09-11 01:31:55 +02:00
|
|
|
//'invoiceDesigns' => 'App\Models\InvoiceDesign',
|
|
|
|
//'invoiceStatus' => 'App\Models\InvoiceStatus',
|
|
|
|
//'frequencies' => 'App\Models\Frequency',
|
|
|
|
//'fonts' => 'App\Models\Font',
|
|
|
|
],
|
2019-11-04 01:22:59 +01:00
|
|
|
'notification' => [
|
2021-08-31 13:29:18 +02:00
|
|
|
'slack' => env('SLACK_WEBHOOK_URL', false),
|
2020-03-21 06:37:30 +01:00
|
|
|
'mail' => env('HOSTED_EMAIL', ''),
|
2019-11-04 01:22:59 +01:00
|
|
|
],
|
2020-03-13 22:17:08 +01:00
|
|
|
'themes' => [
|
|
|
|
'global' => 'ninja2020',
|
|
|
|
'portal' => 'ninja2020',
|
|
|
|
],
|
2020-04-21 07:16:45 +02:00
|
|
|
'quotas' => [
|
|
|
|
'free' => [
|
|
|
|
'daily_emails' => 50,
|
2022-01-28 06:30:40 +01:00
|
|
|
'clients' => 20,
|
|
|
|
'max_companies' => 1,
|
2020-04-21 07:16:45 +02:00
|
|
|
],
|
|
|
|
'pro' => [
|
|
|
|
'daily_emails' => 100,
|
2022-01-28 06:30:40 +01:00
|
|
|
'clients' => 1000000,
|
|
|
|
'max_companies' => 10,
|
2020-04-21 07:16:45 +02:00
|
|
|
],
|
|
|
|
'enterprise' => [
|
|
|
|
'daily_emails' => 200,
|
2022-01-28 06:30:40 +01:00
|
|
|
'clients' => 1000000,
|
|
|
|
'max_companies' => 10,
|
2020-09-06 11:38:10 +02:00
|
|
|
],
|
2020-05-13 08:33:50 +02:00
|
|
|
],
|
|
|
|
'auth' => [
|
|
|
|
'google' => [
|
|
|
|
'client_id' => env('GOOGLE_CLIENT_ID', ''),
|
2020-09-06 11:38:10 +02:00
|
|
|
'client_secret' => env('GOOGLE_CLIENT_SECRET', ''),
|
|
|
|
],
|
2020-07-01 00:29:05 +02:00
|
|
|
],
|
|
|
|
'system' => [
|
|
|
|
'node_path' => env('NODE_PATH', false),
|
2020-09-06 11:38:10 +02:00
|
|
|
'npm_path' => env('NPM_PATH', false),
|
2020-09-04 08:42:58 +02:00
|
|
|
],
|
|
|
|
'designs' => [
|
2020-09-04 13:18:17 +02:00
|
|
|
'base_path' => resource_path('views/pdf-designs/'),
|
2020-09-04 08:42:58 +02:00
|
|
|
],
|
2020-12-17 15:44:01 +01:00
|
|
|
'log_pdf_html' => env('LOG_PDF_HTML', false),
|
2020-12-24 17:01:14 +01:00
|
|
|
'expanded_logging' => env('EXPANDED_LOGGING', false),
|
2020-12-25 14:15:57 +01:00
|
|
|
'snappdf_chromium_path' => env('SNAPPDF_CHROMIUM_PATH', false),
|
2021-07-07 02:47:50 +02:00
|
|
|
'snappdf_chromium_arguments' => env('SNAPPDF_CHROMIUM_ARGUMENTS', false),
|
2021-04-01 03:58:12 +02:00
|
|
|
'v4_migration_version' => '4.5.35',
|
2021-04-02 13:44:44 +02:00
|
|
|
'flutter_renderer' => env('FLUTTER_RENDERER', 'selfhosted-html'),
|
2021-03-07 07:45:48 +01:00
|
|
|
'webcron_secret' => env('WEBCRON_SECRET', false),
|
2021-03-16 22:08:23 +01:00
|
|
|
'disable_auto_update' => env('DISABLE_AUTO_UPDATE', false),
|
2021-03-18 01:53:08 +01:00
|
|
|
'invoiceninja_hosted_pdf_generation' => env('NINJA_HOSTED_PDF', false),
|
2021-04-21 00:38:50 +02:00
|
|
|
'ninja_stripe_key' => env('NINJA_STRIPE_KEY', null),
|
2021-05-05 06:29:58 +02:00
|
|
|
'wepay' => [
|
2021-06-14 00:33:56 +02:00
|
|
|
'environment' => env('WEPAY_ENVIRONMENT', 'stage'),
|
2021-05-05 06:29:58 +02:00
|
|
|
'client_id' => env('WEPAY_CLIENT_ID', ''),
|
|
|
|
'client_secret' => env('WEPAY_CLIENT_SECRET',''),
|
2021-06-26 13:17:12 +02:00
|
|
|
'fee_payer' => env('WEPAY_FEE_PAYER'),
|
|
|
|
'fee_cc_multiplier' => env('WEPAY_APP_FEE_CC_MULTIPLIER'),
|
|
|
|
'fee_ach_multiplier' => env('WEPAY_APP_FEE_ACH_MULTIPLIER'),
|
|
|
|
'fee_fixed' => env('WEPAY_APP_FEE_FIXED'),
|
2021-06-14 12:47:03 +02:00
|
|
|
],
|
2021-05-11 16:40:55 +02:00
|
|
|
'ninja_stripe_publishable_key' => env('NINJA_PUBLISHABLE_KEY', null),
|
2021-05-18 04:13:00 +02:00
|
|
|
'ninja_stripe_client_id' => env('NINJA_STRIPE_CLIENT_ID', null),
|
2021-05-20 06:13:54 +02:00
|
|
|
'ninja_default_company_id' => env('NINJA_COMPANY_ID', null),
|
|
|
|
'ninja_default_company_gateway_id' => env('NINJA_COMPANY_GATEWAY_ID', null),
|
2021-06-02 10:55:33 +02:00
|
|
|
'ninja_hosted_secret' => env('NINJA_HOSTED_SECRET', null),
|
2021-05-12 07:36:23 +02:00
|
|
|
'internal_queue_enabled' => env('INTERNAL_QUEUE_ENABLED', true),
|
2022-01-30 00:46:39 +01:00
|
|
|
'ninja_apple_api_key' => env('APPLE_API_KEY', false),
|
|
|
|
'ninja_apple_private_key' => env('APPLE_PRIVATE_KEY', false),
|
|
|
|
'ninja_apple_bundle_id' => env('APPLE_BUNDLE_ID', false),
|
|
|
|
'ninja_apple_issuer_id' => env('APPLE_ISSUER_ID', false)
|
|
|
|
|
2018-10-04 19:41:22 +02:00
|
|
|
];
|
2022-01-30 00:46:39 +01:00
|
|
|
|