-
Notifications
You must be signed in to change notification settings - Fork 255
/
.env.example
46 lines (40 loc) · 959 Bytes
/
.env.example
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
# Framework
# ---------
YII_DEBUG = true
YII_ENV = dev
# Databases
# ---------
DB_DSN = mysql:host=127.0.0.1;port=3306;dbname=yii2admin
DB_USERNAME = root
DB_PASSWORD = root
DB_TABLE_PREFIX = yii2_
DB_CHARSET = utf8
# Urls
# ---------
FRONTEND_URL = /
BACKEND_URL = /admin
API_URL = /api
STORAGE_URL = /storage
# Redis
# --------
REDIS_HOST = 127.0.0.1
REDIS_PASSWORD = null
REDIS_PORT = 6379
# Mail
# ---------
MAIL_ADMIN = [email protected]
MAIL_DRIVER = smtp
MAIL_HOST = smtp.163.com
MAIL_PORT = 25
MAIL_USERNAME = your_mail_username
MAIL_PASSWORD = your_mail_password
MAIL_ENCRYPTION = null
# Other
# ---------
FRONTEND_COOKIE_VALIDATION_KEY = <generated_key>
BACKEND_COOKIE_VALIDATION_KEY = <generated_key>
API_COOKIE_VALIDATION_KEY = <generated_key>
# Url美化
FRONTEND_PRETTY_URL = true
BACKEND_PRETTY_URL = true
API_PRETTY_URL = true