Skip to content

Commit 2262034

Browse files
committed
feat: add JWT secret configuration to README and update server port variable
1 parent e483736 commit 2262034

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ Create a `.env` file based on the following template:
9191
# Database Configuration
9292
DATABASE_URL="postgresql://postgres:password@localhost:5432/bottlecrm?schema=public"
9393
94+
# JWT Secret (required for authentication)
95+
# Generate a secure secret using openssl:
96+
# openssl rand -base64 32
97+
JWT_SECRET="<your-generated-secret>"
98+
9499
# Google OAuth (Optional)
95100
GOOGLE_CLIENT_ID=""
96101
GOOGLE_CLIENT_SECRET=""

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dotenv.config();
2020

2121
const app = express();
2222
const logger = createLogger();
23-
const PORT = process.env.API_PORT || 3001;
23+
const PORT = process.env.PORT || 3001;
2424

2525
// Trust proxy setting for rate limiting
2626
app.set('trust proxy', 1);

0 commit comments

Comments
 (0)