-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
54 lines (40 loc) · 1.48 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
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
# example
# DATABASE_URL="postgresql://postgres:postgre123@localhost:5432/backtix?schema=public"
DATABASE_URL="postgresql://<username>:<password>@<host>:5432/backtix?schema=public"
# REST API
HOST=0.0.0.0
# HOST=localhost
PORT=3000
# BASE_URL=http://0.0.0.0:3000/
BASE_URL=http://localhost:3000/
# Jika memakai cloud storage dll
# if using cloud storage
# STORAGE_BASE_URL=
REDIS_HOST=localhost # 127.0.0.1
REDIS_PORT=6379
ACCESS_TOKEN_KEY=youraccesstokenkey
REFRESH_TOKEN_KEY=yourrefreshtokenkey
ACCESS_TOKEN_EXPIRATION=15s
REFRESH_TOKEN_EXPIRATION=30d
REFRESH_TOKEN_TTL=2592000000
OTP_TTL=300000
# google oauth
SERVER_GOOGLE_CLIENT_ID=
SERVER_GOOGLE_CLIENT_SECRET=
# optional web only
WEB_APP_GOOGLE_CLIENT_ID=
WEB_APP_GOOGLE_CLIENT_SECRET=
# nodemailer SMTP authentication
MAIL_HOST=sandbox.smtp.mailtrap.io # example using mailtrap
MAIL_PORT=2525
MAIL_ADDRESS=
MAIL_PASSWORD=
# midtrans payment
MIDTRANS_URL=https://app.sandbox.midtrans.com/snap/v1/transactions
MIDTRANS_SERVER_KEY=SB-Mid-server-xxx
MIDTRANS_CLIENT_KEY=SB-Mid-client-xxx