-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env
45 lines (33 loc) · 1.98 KB
/
.env
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
PORT=8080
PORT_INTERNAL=8081
NODE_ENV="development"
BASE_PATH="/api"
INTERNAL_PATH="/internal"
NOTIFICATION_RANGE_DAYS=1
TOKEN_SIGN_KEY="somesecrettoken"
TOKEN_VALIDITY="5m"
REFRESH_TOKEN_VALIDITY="15m"
DATABASE_PASSWORD="cookery2123"
DATABASE_USER="cookery2"
DATABASE="cookery2"
DATABASE_HOST="localhost"
DATABASE_PORT=5432
DATABASE_LOGGING=true
LOGGING_ERROR=true
THUMBNAIL_DIMENSION=640
IMAGE_DIMENSION=2048
EMAIL_HOST=localhost
EMAIL_PORT=1025
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM="test@noreply.com"
RESET_LINK_VALIDITY=12
MAIL_CONFIRM_SUBJECT="My Cookery Book 2: Email confirmation"
MAIL_CONFIRM_TEMPLATE_TXT_HBS="Welcome {{fullName}}, please confirm your email by filling form https://localhost:3000/confirm with following key {{key}} and {{username}}."
MAIL_CONFIRM_TEMPLATE_HTML_HBS="<h1>Welcome {{fullName}},</h1><p>please confirm your email by filling form https://localhost:3000/confirm with following key <b>{{key}}</b> and <b>{{username}}</b>. For better convenience, you can use this <a href='https://localhost:3000/confirm/{{username}}/{{key}}'>link</a>.</p>"
MAIL_NOTIFICATION_SUBJECT="My Cookery Book 2: new recipes"
MAIL_NOTIFICATION_TEMPLATE_TXT_HBS="Hello {{fullName}}, here are some new recipes for you. \n {{#each recipes}} - {{name}}, http://localhost:3000/recipe/display/{{id}} \n{{/each}}"
MAIL_NOTIFICATION_TEMPLATE_HTML_HBS="<h1>Hello {{fullName}},</h1><p>here are some new recipes for you.</p><ul>{{#each recipes}}<li><a href='http://localhost:3000/recipe/display/{{id}}' target='_blank' rel='bookmark'>{{name}}</a></li>{{/each}}</ul>"
MAIL_RESET_SUBJECT="My Cookery Book 2: Password reset"
MAIL_RESET_TEMPLATE_TXT_HBS="Hello {{fullName}}, please reset your password on following link https://localhost:3000/reset using your username and following key {{key}}."
MAIL_RESET_TEMPLATE_HTML_HBS="<h1>Hello {{fullName}},</h1><p>please reset your password on following <a href='https://localhost:3000/reset/{{username}}/{{key}}'>link</a> using your username and following key <b>{{key}}</b>.</p>"