-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
48 lines (43 loc) · 936 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
47
48
# Application
TIME_ZONE=Asia/Tokyo
LOG_ENABLE=false
APP_DEBUG=false
# Server
PFILE=@runtime/swoft.pid
PNAME=php-swoft
TCPABLE=true
CRONABLE=false
AUTO_RELOAD=true
AUTO_REGISTER=false
# HTTP
HTTP_HOST=0.0.0.0
HTTP_PORT=8888
HTTP_MODE=SWOOLE_PROCESS
HTTP_TYPE=SWOOLE_SOCK_TCP
# Swoole Settings
WORKER_NUM=1
MAX_REQUEST=100000
DAEMONIZE=0
DISPATCH_MODE=2
TASK_IPC_MODE=1
MESSAGE_QUEUE_KEY=1879052289
TASK_TMPDIR=/tmp/
LOG_FILE=@runtime/logs/swoole.log
TASK_WORKER_NUM=1
PACKAGE_MAX_LENGTH=2048
OPEN_HTTP2_PROTOCOL=false
SSL_CERT_FILE=/path/to/ssl_cert_file
SSL_KEY_FILE=/path/to/ssl_key_file
# Database Master nodes
DB_NAME=dbMaster
DB_URI=127.0.0.1:3306/bookshelf?user=root&password=root&charset=utf8mb4
DB_MIN_ACTIVE=5
DB_MAX_ACTIVE=10
DB_MAX_WAIT=20
DB_MAX_WAIT_TIME=3
DB_MAX_IDLE_TIME=60
DB_TIMEOUT=2
# GOOGLE
GOOGLE_CLIENT_ID=YOUR_CLIENT_ID
GOOGLE_CLEINT_SECRET=YOUR_SECRET
GOOGLE_REIRECT_URI=http://localhost:8888/login/callback