docs: Add required in cookie_secret (#1142)

This commit is contained in:
Miguel 2020-07-27 16:59:54 +01:00 committed by GitHub
parent a7bd2caae9
commit 72b6347886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -156,6 +156,7 @@ The name of the session cookie sent to clients.
- Environmental Variable: `COOKIE_SECRET`
- Config File Key: `cookie_secret`
- Type: [base64 encoded] `string`
- Required for proxy service
Secret used to encrypt and sign session cookies. You can generate a random key with `head -c32 /dev/urandom | base64`.
@ -1170,4 +1171,3 @@ If no certificate is specified, one will be generated and the base64'd public ke
[signed headers]: ./signed-headers.md
[toml]: https://en.wikipedia.org/wiki/TOML
[yaml]: https://en.wikipedia.org/wiki/YAML

View file

@ -212,7 +212,7 @@ func (db *DB) ClearDeleted(_ context.Context, cutoff time.Time) {
}
}
// doNotify receives event from redis and signal the channel that something happenned.
// doNotify receives event from redis and signal the channel that something happened.
func doNotify(ctx context.Context, psc *redis.PubSubConn, ch chan struct{}) error {
switch v := psc.ReceiveWithTimeout(time.Second).(type) {
case redis.Message: