Skip to content

Commit 90b3ead

Browse files
committed
docs: Update README to use openssl for generating the cookie secret and correct the path to server.js.
1 parent 233d215 commit 90b3ead

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ wget https://github.com/andrecrjr/cool-copyparty-front/releases/latest/download/
1111
# Unzip it
1212
unzip copyparty-front.zip
1313

14+
1415
# Set environment variables (at minimum a strong cookie secret, and your desired port)
15-
COOKIE_SECRET=your-long-random-secret PORT=3925 NODE_ENV=production node server.js
16+
COOKIE_SECRET=$(openssl rand -base64 32) PORT=3925 NODE_ENV=production node copyparty-front/server.js
1617

1718
# Open http://localhost:3925 and log in with your CopyParty server URL and password.
1819
```
@@ -49,7 +50,7 @@ You can self-host in two ways: using a prebuilt ZIP from Releases (standalone bu
4950
2. Unzip it: `unzip copyparty-front.zip` (this creates `copyparty-front/`).
5051
3. Change into the standalone bundle: `cd copyparty-front/.next/standalone`.
5152
4. Set environment variables (at minimum a strong cookie secret, and your desired port):
52-
- macOS/Linux: `COOKIE_SECRET=your-long-random-secret PORT=3925 NODE_ENV=production node server.js`
53+
- macOS/Linux: `COOKIE_SECRET=$(openssl rand -base64 32) PORT=3925 NODE_ENV=production node server.js`
5354
- Windows (PowerShell): `$env:COOKIE_SECRET="your-long-random-secret"; $env:PORT="3925"; $env:NODE_ENV="production"; node server.js`
5455
5. Open `http://localhost:3925` and log in with your CopyParty server URL and password.
5556

0 commit comments

Comments
 (0)