-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.sample
32 lines (25 loc) · 825 Bytes
/
.env.sample
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
NODE_ENV=development
PORT=3000
MONGODB_DATABASE=test
# development
MONGODB_USER=user
MONGODB_PASSWORD=password
MONGODB_CONNECT_STRING=mongodb+srv://<user>:<password>@rabbit.xb8tvht.mongodb.net/<database>
# production
MONGODB_ENDPOINT=<docdb.amazonaws.com.endpoint>
# redis
REDIS_CONNECT_STRING=redis://127.0.0.1:6379/0
JWT_SECRET=secert
LOG_FILE_DIR=logs
# NewebPay
NEWEBPAY_VERSION=1.5
NEWEBPAY_MERCHANT_ID=MSxxxxxxxxx
NEWEBPAY_HASH_KEY=secert
NEWEBPAY_HASH_IV=secert
NEWEBPAY_HOST=http://localhost:3000
NEWEBPAY_NOTIFY_URL=http://localhost:3000/newebpay/notifiy
NEWEBPAY_RETURN_URL=http://localhost:3000/orders/payment_return # 指定後端解密 url
PAYMENT_RETURN_URL=http://localhost:3000/payment-completed # 指定到前端付款完成頁
# ticket chcking code
TICKET_CHECKIN_KEY=secret
TICKET_CHECKIN_IV=secret