-
Notifications
You must be signed in to change notification settings - Fork 19
/
.env.sample
101 lines (72 loc) · 2.65 KB
/
.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
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
# ====================
# Build-time variables
# ====================
# These environment variables are used when building docker image
# (by LIFF or by Cofacts API introspection)
# Language setup for chatbot UI
LOCALE=en_US
# Rollbar error logging
ROLLBAR_ENV=localhost
# Rollbar post_client_item, for LIFF
ROLLBAR_CLIENT_TOKEN=
# Google tag manager ID GTM-XXXXX
GTM_ID=
# LIFF url with pattern "https://liff.line.me/<liff-id>"
LIFF_URL=https://liff.line.me/1563196602-X6mLdDkW
# Cofacst API URL
API_URL=https://dev-api.cofacts.tw/graphql
# Cofacts web page URL base, separate by comma.
# First one will be used to generate article URLs, others will be used to detect article page.
SITE_URLS=https://dev.cofacts.tw
# LINE_NOTIFY or PUSH_MESSAGE
NOTIFY_METHOD=
# Uncomment this to bypass in-client check in LIFF, enable debugging on extenral browsers
# DEBUG_LIFF=1
# ===============
# Runtime secrets
# ===============
# These environment variables are not included in built docker image and are
# given when running the container
# From LINE Messaging developer console
LINE_CHANNEL_SECRET=
LINE_CHANNEL_TOKEN=
# From LINE LOGIN developer console, used to identify ID token from LIFF.
# This LINE Login channel should be under the same provider as LIFF (LIFF_URL)
LINE_LOGIN_CHANNEL_ID=
# Redis stores chatbot's conversation context among HTTP requests
REDIS_URL=redis://localhost:6379
# Chatbot server
PORT=5001
# Rollbar post_server_item, for chatbot & graphql
ROLLBAR_TOKEN=
# This should match rumors-api's RUMORS_LINE_BOT_SECRET
APP_SECRET=CHANGE_ME
# Block certain users by ID
USERID_BLACKLIST=
# Facebook App ID for share dialog
FACEBOOK_APP_ID=719656818195367
# LIFF webpack-dev-server port (not used in production)
LIFF_DEV_PORT=8080
# Secret to sign and validate JWT
JWT_SECRET=secret
# MONGODB
MONGODB_URI=mongodb://root:root-test-password@localhost:27017/cofacts?authSource=admin
# From LINE Notify service management page
LINE_NOTIFY_CLIENT_ID=
LINE_NOTIFY_CLIENT_SECRET=
# Should be a public url, it's used for LINE Notify auth callback and redirect
RUMORS_LINE_BOT_URL=
# For query ListReplies form lastSacnAt to current+buffer
#{"years": 2, "months": 9, "weeks": 1, "days": 7, "hours": 5, "minutes": 9, "seconds": 30,}
REVIEW_REPLY_BUFFER={"seconds":0,"minutes":0,"hours":-12,"days":0}
# LINE add friend url, used for the message to guide user from LINE Notify to cofacts
LINE_FRIEND_URL=https://line.me/R/ti/p/@cofacts
# Google service
GOOGLE_APPLICATION_CREDENTIALS=<path-to-service-account-credential>
# BigQuery
BIGQUERY_ANALYTICS_DATASET=line_bot_analytics
# Dialogflow
DAILOGFLOW_LANGUAGE=
DAILOGFLOW_ENV=
# Bull queue processor concurrency
JOBQUEUE_CONCURRENCY=3