nestjs_auth/.env
2022-09-12 20:24:55 +09:00

25 lines
1010 B
Bash

# 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="mysql://root:@localhost:3306/test_user"
CORS_ALLOW_ORIGINS = ['http://localhost:8080']
CORS_ALLOW_METHOD = "GET,PUT,POST,DELETE,PATCH,OPTIONS"
AUTH_PASSWORD_SALTORROUNDS=10
AUTH_USERNAME_FIELD="email"
#키값 구하는 방법
#node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
JWT_CONSTANTS_ACCESS_SECRET = "access_key"
JWT_CONSTANTS_ACCESS_EXPIRESIN ="60s"
JWT_CONSTANTS_REFRESH_SECRET = "refresh_key"
JWT_CONSTANTS_REPRESH_EXPIRESIN ="1d"
JWT_CONSTANTS_REPRESH_SALTORROUNDS=10
DEFAULT_TABLE_PERPAGE = 10
DEFAULT_TABLE_PAGE = 1