Skip to content

Commit

Permalink
[IMPROVE] Strapi Setup OOB Experience (RocketChat#168)
Browse files Browse the repository at this point in the history
Embed default key to improve out of box experience.
  • Loading branch information
Dnouv committed Nov 3, 2022
1 parent 2136a06 commit 023220f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Nodejs versioning is managed by [volta](https://docs.volta.sh/guide/). You can i

By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, set the environment variable `PORT` to 3000.

#### If migrating form Strapi v3 to v4, please -

> Delete the old `.tmp` and `build` folders (if exists).
> **Optional: Add the `APP_KEYS`, and `JWT_SECRET` environment variables. (For a quick start, you could use the same keys as in `.env.example`)
```
export PORT=3000
```
Expand Down
2 changes: 1 addition & 1 deletion cms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ By default, strapi listens on port 1337. If you're using WSL2 on Windows and a

> Delete the old `.tmp` and `build` folders (if exists).
> Add the `APP_KEYS`, and `JWT_SECRET` environment variables. (For a quick start, you could use the same keys as in `.env.example`)
> **Optional: Add the `APP_KEYS`, and `JWT_SECRET` environment variables. (For a quick start, you could use the same keys as in `.env.example`)
```
export PORT=3000
Expand Down
2 changes: 1 addition & 1 deletion cms/config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
keys: env.array('APP_KEYS', ["km0QgjouyuXrRtyclpqncQ==","eJRdLckHY4J5cOfQNmKs+w==","zHVrFOcuFTLlwsabLJNIaw==","P9XerXlU/TTeIzsOdizoOQ=="]),
},
cron: {
enabled: true,
Expand Down

0 comments on commit 023220f

Please sign in to comment.