Skip to content

Commit 6aea190

Browse files
author
Farzad Hayatbakhsh
committed
Remove session secret from .env file to simplify the setup steps
1 parent b3e73cb commit 6aea190

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ UPLOADCARE_PUBLIC_KEY=your-public-key
66

77
# Replace this with your Uploadcare SECRET key from https://app.uploadcare.com/
88
UPLOADCARE_SECRET_KEY=your-secret-key
9-
10-
# Replace this with your session secret (optional for testing purposes)
11-
SESSION_SECRET=some-session-secret

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Copy the `.env.example` file to `.env` and fill in the required environment vari
1515
TINYMCE_API_KEY=your-api-key
1616
UPLOADCARE_PUBLIC_KEY=your-public-key
1717
UPLOADCARE_SECRET_KEY=your-secret-key
18-
SESSION_SECRET=your-session-secret
1918
```
2019

2120
## Installation
@@ -30,4 +29,4 @@ npm install
3029
npm run start
3130
```
3231

33-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
32+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const setupExpress = (port) => {
2626
app.set("trust proxy", 1);
2727
app.use(
2828
session({
29-
secret: process.env.SESSION_SECRET,
29+
secret: "your-session-secret",
3030
resave: false,
3131
saveUninitialized: true,
3232
cookie: { secure: false },

0 commit comments

Comments
 (0)