-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.env.example
112 lines (89 loc) · 2.85 KB
/
.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
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
102
103
104
105
106
107
108
109
110
111
112
// Front end selection
// select the name of the front end to use this will use the folder of the same name in client for views, html, js, css and assests
FRONT_END_NAME = agora
// Agora / Node process Port
// Host name
SITE_PROTOCOL = http://
SITE_HOST = localhost
SITE_PORT = 4200
// storage base directory
STORAGE_BASE_PATH = ../client/
// Image upload max size
IMAGE_UPLOAD_MAX_SIZE = 1048576
IMAGE_UPLOAD_MAX_SIZE_FRIENDLY_TEXT = 1 MB
// Image file paths (full file path on server)
AVATAR_IMAGE_PATH = /public/assets/uploads/profile/
WORKSPACE_IMAGE_PATH = /public/assets/uploads/workspace/
TOPIC_IMAGE_PATH = /public/assets/uploads/topic/
RESOURCE_IMAGE_PATH = /public/assets/uploads/resource/
// Image Web paths (website / URI path)
AVATAR_IMAGE_WEB_PATH = /assets/uploads/profile/
WORKSPACE_IMAGE_WEB_PATH = /assets/uploads/workspace/
TOPIC_IMAGE_WEB_PATH = /assets/uploads/topic/
RESOURCE_IMAGE_WEB_PATH = /assets/uploads/resource/
// database connection
// this must be configured to connect to a postgres database!
PG_USER = agora
PG_HOST = localhost
PG_PASSWORD = agora
PG_DATABASE = agora
PG_PORT = 5432
PG_SSL = false
// Google authentication
GOOGLE_AUTHENTICATION = false
GOOGLE_CLIENT_ID = YOUR_CLIENT_ID
//OPENAI API
OPENAI_TOGGLE = false
OPENAI_API_KEY = YOUR_API_KEY
//SEMANTIC SCHOLAR
SEMANTIC_SCHOLAR_API_KEY = API_KEY
// session secret
SESSION_SECRET = MAKE_THIS_A_RANDOM_STRING!
// turn on or off logging of requests and sessions in user_sessions table
// table can get quite large, but tracks data on types of requests, devices, os, etc
// for all user sessions and API calls
REQUEST_DATA_LOGGING = true
// Website page toggle
// Use these switches to enable / disable landing pages
AGORA_ABOUT_PAGE = true
AGORA_PRODUCT_PAGE = false
// EMAIL SETTINGS
// set to 'true' in lowercase to enable
EMAIL_TOGGLE = false
EMAIL = EMAIL_ADDRESS
EMAIL_PASSWORD = SEND_FROM_EMAIL_PASSWORD
EMAIL_HOST = smtp.your_host.com
EMAIL_PORT = 465
EMAIL_SECURE = true
EMAIL_FROM = SEND_FROM_EMAIL_ADDRESS
// Password token experation
PW_TOKEN_EXPIRATION = 86400000
// Stripe
// set to 'true' in lowercase to enable
STRPIE_TOGGLE = false
// prod key
//STRIPE_KEY =
// test key
STRIPE_KEY =
// prod
//STRIPE_CB_PRICE =
//STRIPE_TOKEN_PRICE =
// Memberships
//STRIPE_FOUNDERS_PRICE =
// dev
STRIPE_CB_PRICE =
STRIPE_TOKEN_PRICE =
// Memberships
STRIPE_FOUNDERS_PRICE =
// Github secret for webhook security
// this is a stub, used to use used for sponsors, but it might still be useful in the future for repo integration
// set to 'true' in lowercase to enable
GITHUB_TOGGLE = false
// Github secret for webhook security
GITHUB_SECRET = YOUR_SECRET
// Github authentication token for API calls
GITHUB_TOKEN = YOUR_TOKEN
// github base url (not likely to change)
GITHUB_BASE_URL = https://api.github.com
// github API URLs
GITHUB_COLLABORATORS = /repos/{owner}/{repo}/collaborators