-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.neon
97 lines (84 loc) · 2.92 KB
/
config.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
#
# If you don't protect this directory from direct web access, anybody will be able to see your passwords.
# http://nette.org/security-warning
#
parameters:
errbit:
send_errors: false
redis:
host: @environmentConfig::get('CRM_REDIS_HOST')
port: @environmentConfig::get('CRM_REDIS_PORT')
password: @environmentConfig::get('CRM_REDIS_PASSWORD')
database: @environmentConfig::get('CRM_REDIS_DATABASE')
extensions:
local_configs: Crm\ApplicationModule\Models\Config\ConfigExtension
translation: Contributte\Translation\DI\TranslationExtension
- Crm\ApplicationModule\DI\ApplicationModuleExtension
- Crm\ApiModule\DI\ApiModuleExtension
- Crm\AdminModule\DI\AdminModuleExtension
- Crm\DashboardModule\DI\DashboardModuleExtension
users: Crm\UsersModule\DI\UsersModuleExtension
- Crm\SubscriptionsModule\DI\SubscriptionsModuleExtension
- Crm\SegmentModule\DI\SegmentModuleExtension
- Crm\PaymentsModule\DI\PaymentsModuleExtension
- Crm\SalesFunnelModule\DI\SalesFunnelModuleExtension
- Crm\InvoicesModule\DI\InvoicesModuleExtension
- Crm\IssuesModule\DI\IssuesModuleExtension
- Crm\PrintModule\DI\PrintModuleExtension
- Crm\ProductsModule\DI\ProductsModuleExtension
- Crm\UpgradesModule\DI\UpgradesModuleExtension
- Crm\ScenariosModule\DI\ScenariosModuleExtension
- Crm\OnboardingModule\DI\OnboardingModuleExtension
- Crm\GiftsModule\DI\GiftsModuleExtension
- Crm\StripeModule\DI\StripeModuleExtension
# parameters for extensions
users:
countries:
default: @environmentConfig::get('CRM_DEFAULT_COUNTRY_ISO')
translation:
dirs:
- %appDir%/lang
locales:
default: en_US
whitelist: [en_US, sk_SK, cs_CZ]
localeResolvers:
- Contributte\Translation\LocalesResolvers\Parameter
# Router translation resolver needs to be disabled by default
# in order to migrate the project's database. Router resolver would
# try to initialize routes of all of the modules possibly attempting
# to read configuration from the database (like products module does).
# That would fail because the DB would be empty.
#
# Feel free to enable this back after the initial run of the command
# php bin/command.php phinx:migrate
# - Contributte\Translation\LocalesResolvers\Router
loaders:
neon: Contributte\Translation\Loaders\Neon
yml: Symfony\Component\Translation\Loader\YamlFileLoader
php:
date.timezone: Europe/Bratislava
intl.error_level: 2 # E_WARNING
security:
debugger: true
application:
errorPresenter: Application:Error
mapping:
*: Crm\*Module\Presenters\*Presenter
# TODO: we need to scan composer to properly register extensions
scanComposer: yes
session:
expiration: 14 days
autoStart: smart
http:
frames: yes
tracy:
netteMailer: no
database:
default:
dsn: @environmentConfig::getDsn()
user: @environmentConfig::get('CRM_DB_USER')
password: @environmentConfig::get('CRM_DB_PASS')
options:
lazy: yes