-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env_template
46 lines (46 loc) · 1.22 KB
/
.env_template
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
TIME_ZONE_DIFF = 0
NODE_ENV = 'development'
PORT = 3000
CONSUMER_PORT = 4000
GENERAL_PORT = 5000
PORT_TEST = 3001
CONSUMER_PORT_TEST = 4001
API_VERSION = '1.0'
TOKEN_EXPIRE = 2592000
TOKEN_SECRET = ''
PAY_TOKEN_SECRET = 'checkout'
DB_HOST = '18.139.220.81'
DB_USERNAME = root
DB_PASSWORD =
DB_DATABASE = miaosha
DB_DATABASE_TEST = miaosha_test
READ_DB_HOST = localhost
READ_DB_USERNAME =
READ_DB_PASSWORD =
READ_DB_DATABASE = miaosha
CACHE_HOST = 'localhost'
CACHE_PORT = 6379
CACHE_USER = 'default'
CACHE_PASSWORD = ''
REDIS_PORT_1 = 7000
REDIS_HOST_1 = 10.8.3.46 # 要用eth0的ipv4
REDIS_USERNAME_1 = default
REDIS_PASSWORD_1 =
REDIS_PORT_2 = 7001
REDIS_HOST_2 = 10.8.3.46 # ipconfig getifaddr en0
REDIS_USERNAME_2 = default
REDIS_PASSWORD_2 =
PROTOCOL = 'amqp'
RABBIT_HOST = 'localhost'
RABBIT_PORT = 5672
RABBIT_USER = 'guest'
RABBIT_PASSWORD = 'guest'
DNS = https://consumer.miaosha.click
TOTAL_TIME = 15 # 秒殺時間 (mins)
STOCK = 1000
MAX_PEOPLE = 4
TIME_LIMIT = 1.5 # 釋放庫存時間 (mins)
CHECKOUT_PROCESS_TIME = 3 # 預留checkout要處理的時間(mins),以防止race condition
PAY_TOKEN_EXPIRE = 30000 # ms
QUEUE_URL = https://sqs.ap-northeast-1.amazonaws.com/338492866029/SQS_email
WHITE_LIST = https://miaosha.click