From ba1cc7e7c79d6145cd966aa845d86c6337261138 Mon Sep 17 00:00:00 2001 From: Mr Sharafdin Date: Sat, 2 Mar 2024 13:42:13 +0300 Subject: [PATCH] added JWT_SECRET_KET & NODE_ENVIROMENT in .env file --- .../JS-PostgreSQL-Prisma-NoAuth-Template/.env | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/.env b/packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/.env index b8ee1ec6..51b37125 100644 --- a/packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/.env +++ b/packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/.env @@ -3,12 +3,24 @@ # Specify the port number on which the server will listen for incoming connections. # If not specified, the default port 8000 will be used. # Default: 8000 - SERVER_PORT= # Database Configuration # ---------------------- # Provide the URL for connecting to the database, This should include the protocol, username, password, host, port, and database name as applicable. # Format: protocol://username:password@host:port/databaseName - DATABASE_URL= + +# Authentication and Security Configuration +# ----------------------------------------- +# Define a secret key for JWT (JSON Web Token) authentication. This key is used to sign and verify JWTs for secure data transfer and access control. +# The JWT_SECRET_KEY should be a long, random string that is kept secure to ensure token integrity and prevent unauthorized access. +JWT_SECRET_KEY= + +# Application Environment +# ----------------------- +# Set the environment in which the Node.js application is running. Common values are 'development', 'production', and 'test'. +# This setting can influence the application's behavior, enabling or disabling certain features based on the environment. +# For example, in 'development' mode, more verbose logging might be enabled, whereas 'production' might focus on performance optimizations and error handling. +# Default: development (if not specified) +NODE_ENVIRONMENT=