forked from pluf/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
149 lines (136 loc) · 4.35 KB
/
Copy pathconfig.php
File metadata and controls
149 lines (136 loc) · 4.35 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
// TODO: Hadi - 1396-04-23: This code should be move to an appropriate place.
// Pluf::loadFunction('Geo_DB_PointToDB');
return array(
'general_domain' => 'localhost:8080',
'general_admin_email' => array(
'info@pluf.ir'
),
'installed_apps' => array(
'Pluf',
'User',
'Group',
'Role',
'Message',
'Monitor',
'Tenant',
'SuperTenant',
'Bank',
// 'Backup',
'CMS',
// 'Collection',
// 'Captcha',
// 'Cache',
// 'Geo',
// 'Spa',
'Seo',
// 'Assort',
'RestLog',
// 'Discount',
'SDP',
// // 'Calendar',
// // 'Book',
'Marketplace',
// 'ELearn',
'Shop',
// 'Mall',
'Exchange'
),
'spas' => array(),
'middleware_classes' => array(
// find tenant
'Pluf_Middleware_TenantEmpty',
// 'Pluf_Middleware_TenantFromHeader',// It is only for development and test phases
'Pluf_Middleware_TenantFromDomain',
'Pluf_Middleware_TenantFromSubDomain', // It should be used only in multitenant state
'Pluf_Middleware_TenantFromConfig',
// 'Pluf_Middleware_TenantRedirect', // It redirects to main tenant if request tenant is not valid
// Load user and session
'Pluf_Middleware_Session',
'User_Middleware_BasicAuth',
'User_Middleware_Session',
'Pluf_Middleware_Translation',
'Captcha_Middleware_Verifier', // Must be affter session and tenant
// 'Seo_Middleware_Render',
'Cache_Middleware_RFC7234',
'User_Middleware_Space', // It should be one of lastest middlewares
'RestLog_Middleware_Audit'
),
'debug' => true,
'mimetypes_db' => __DIR__ . '/storage/etc/mime.types',
'languages' => array(
'fa',
'en'
),
'tmp_folder' => __DIR__ . '/storage/var/tmp',
'template_folders' => array(
__DIR__ . '/storage/templates',
__DIR__ . '/vendor/pluf/seo/src/Seo/templates',
__DIR__ . '/vendor/pluf/bank/src/Bank/templates'
),
'template_tags' => array(
'now' => 'Pluf_Template_Tag_Now',
'cfg' => 'Pluf_Template_Tag_Cfg',
'tenant' => 'Pluf_Template_Tag_Tenant',
'setting' => 'Tenant_Template_Tag_Setting'
),
'upload_path' => __DIR__ . '/storage/tenant',
'upload_max_size' => 524288000,
'time_zone' => 'Asia/Tehran',
'encoding' => 'UTF-8',
'secret_key' => '5a8d7e0f2aad8bdab8f6eef725412850',
'user_account_auto_activate' => true,
'user_avatar_default' => __DIR__ . '/storage/var/avatar.svg',
'user_avatra_max_size' => 2097152,
'log_delayed' => true,
'log_handler' => 'Pluf_Log_File',
'log_level' => Pluf_Log::ERROR,
'pluf_log_file' => __DIR__ . '/storage/var/logs/pluf.log',
'db_engine' => 'MySQL',
'db_version' => '5.5.33',
'db_login' => 'root',
'db_password' => '',
'db_server' => 'localhost',
'db_database' => 'demo5',
'db_table_prefix' => '',
'mail_backend' => 'mail',
'user_profile_class' => 'User_Profile',
'subdomain_min_length' => 5,
'reserved_subdomains' => array(
'www',
'blog',
'developer',
'developers',
'market',
'marketplace'
),
'tenant_default' => 'www',
// 'tenant_default' => 'test',
'multitenant' => true,
'bank_debug' => true,
'migrate_allow_web' => true,
'orm.typecasts' => array(
'Geo_DB_Field_Polygon' => array(
'Geo_DB_GeometryFromDb',
'Geo_DB_PolygonToDb'
),
'Geo_DB_Field_Geometry' => array(
'Geo_DB_GeometryFromDb',
'Geo_DB_GeometryToDb'
),
'Geo_DB_Field_Point' => array(
'Geo_DB_GeometryFromDb',
'Geo_DB_PointToDb'
)
),
'marketplace.backend' => 'http://marketplace.webpich.com',
// -------------------------------------------------------------
// SEO
// -------------------------------------------------------------
'seo.prerender.global.url' => 'http://prerender:3000',
'seo.prerender.global.token' => 'no-need',
'seo.prerender.default.enable' => true,
'seo.prerender.default.engine' => 'global',
'seo.prerender.default.period' => '+7 days',
'seo.prerender.default.pattern' => '.*'
);