mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 14:15:51 +02:00
Security: Don't allow default secret/token config parameters (#80)
This commit is contained in:
@@ -181,6 +181,16 @@ Add `config.json` file in root directory with following content. You can use `co
|
||||
}
|
||||
```
|
||||
|
||||
### NOTE!
|
||||
|
||||
You **MUST** provide **unique**, **random** values for the `secret` and `token` fields of your config. It is **extremely dangerous** to leave these as default, as these values serve as authentication tokens for internal APIs and session cookies.
|
||||
|
||||
To generate new values for these parameters, you can use the following command:
|
||||
|
||||
```bash
|
||||
node -e "console.log(require('crypto').randomBytes(64).toString('base64'))"
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
### Your first build
|
||||
|
||||
Reference in New Issue
Block a user