-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
28 lines (23 loc) · 1.72 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
NEXT_HOST="localhost"
NEXT_PORT=3000 # Which port the app is running at (note that you have to also modify the dev/start scripts in `package.json` using the "-p" flag, e.g., "-p 3000".)
# Database connection credentials
DB_HOST="localhost"
DB_PORT=5432 # PostgreSQL's default port
DB_USER="postgres"
DB_PASSWORD="123456"
DB_NAME="authsandbox" # You may change it
# This was inserted by `prisma init`:
# 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
DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?schema=public"
## Sender email configuration
# You may create a new Gmail account for testing out the app yourself.
# See https://support.google.com/a/answer/176600 (Option 2: Send email with the Gmail SMTP server)
# For simplicity, you may use your own personal account. However, I wouldn't recommend that, since it's your "personal" account after all :D
# Sacrifice a few minutes to use a dummy account instead.
GMAIL_ACCOUNT_EMAIL_ADDRESS="[email protected]" # Use the account's email address
GMAIL_APP_PASSWORD="app-pasword" # The account's app password. See https://support.google.com/accounts/answer/185833
ACCESS_TOKEN_DURATION=300 # How many seconds the access token will last (300 seconds = 5 minutes)
REFRESH_TOKEN_DURATION=2592000 # How many seconds the refresh token will last (equal to 30 * 24 * 60 * 60 seconds = 1 month)