Merge pull request #1512 from r4co0n/fix-docs-cookiesecret-generator-bash

docs/configuration: Fix entropy for bash secret
This commit is contained in:
Joel Speed 2022-02-21 21:44:04 +00:00 committed by GitHub
commit b2f780c394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
<TabItem value="bash">
```shell
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 | base64
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo
```
</TabItem>

View File

@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
<TabItem value="bash">
```shell
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 | base64
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo
```
</TabItem>

View File

@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
<TabItem value="bash">
```shell
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 | base64
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo
```
</TabItem>

View File

@ -7,7 +7,7 @@ title: Overview
### Generating a Cookie Secret
To generate a strong cookie secret use `python -c 'import os,base64; print(base64.urlsafe_b64encode(os.urandom(16)).decode())'`
To generate a strong cookie secret use `python -c 'import os,base64; print(base64.urlsafe_b64encode(os.urandom(32)).decode())'`
### Config File

View File

@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
<TabItem value="bash">
```shell
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 | base64
dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo
```
</TabItem>